tdisjoint_slice2 works

This commit is contained in:
Araq 2014-05-31 01:16:16 +02:00
commit 9953e0bbca
5 changed files with 27 additions and 7 deletions

View file

@ -338,7 +338,7 @@ proc setupArgsForParallelism(n: PNode; objType: PType; scratchObj: PSym;
objType.addField(fieldB)
if getMagic(n) == mSlice:
let a = genAddrOf(n[0])
let a = genAddrOf(n[1])
field.typ = a.typ
objType.addField(field)
result.add newFastAsgnStmt(newDotExpr(scratchObj, field), a)