small bugfix for iterators
This commit is contained in:
parent
0049a2a388
commit
6a39155399
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ proc semFor(c: PContext, n: PNode): PNode =
|
|||
n.sons[length-2] = semExprNoDeref(c, n.sons[length-2], {efWantIterator})
|
||||
var call = n.sons[length-2]
|
||||
let isCallExpr = call.kind in nkCallKinds
|
||||
if isCallExpr and call.sons[0].sym.magic != mNone:
|
||||
if isCallExpr and call[0].kind == nkSym and call[0].sym.magic != mNone:
|
||||
if call.sons[0].sym.magic == mOmpParFor:
|
||||
result = semForVars(c, n)
|
||||
result.kind = nkParForStmt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue