bugfix: pegs.nim compiles again
This commit is contained in:
parent
e25384db89
commit
aa14667ca1
4 changed files with 7 additions and 6 deletions
|
|
@ -499,7 +499,10 @@ 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:
|
||||
if mapType(e.sons[0].typ) == ctArray and
|
||||
skipTypes(e.sons[0].typ.sons[0], abstractInst).kind != tySet:
|
||||
# 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)
|
||||
else:
|
||||
initLocExpr(p, e.sons[0], a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue