second attempt to fix code gen for pegs.nim
This commit is contained in:
parent
aa14667ca1
commit
3e91b456e5
2 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue