diff options
Diffstat (limited to 'compiler/ccgexprs.nim')
-rwxr-xr-x | compiler/ccgexprs.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 2b84226d3..38cfafcfa 100755 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -499,8 +499,7 @@ proc unaryArith(p: BProc, e: PNode, d: var TLoc, op: TMagic) = proc genDeref(p: BProc, e: PNode, d: var TLoc) = var a: TLoc - if mapType(e.sons[0].typ) == ctArray and - skipTypes(e.sons[0].typ.sons[0], abstractInst).kind != tySet: + if mapType(e.sons[0].typ) == ctArray: # XXX the amount of hacks for C's arrays is incredible, maybe we should # simply wrap them in a struct? --> Losing auto vectorization then? expr(p, e.sons[0], d) |