fixes #10901
This commit is contained in:
parent
b03421d087
commit
78174857f8
1 changed files with 2 additions and 0 deletions
|
|
@ -559,6 +559,8 @@ proc genCall(c: PCtx; n: PNode; dest: var TDest) =
|
||||||
#if n.typ != nil and n.typ.sym != nil and n.typ.sym.magic == mPNimrodNode:
|
#if n.typ != nil and n.typ.sym != nil and n.typ.sym.magic == mPNimrodNode:
|
||||||
# genLit(c, n, dest)
|
# genLit(c, n, dest)
|
||||||
# return
|
# return
|
||||||
|
# bug #10901: do not produce code for wrong call expressions:
|
||||||
|
if n.len == 0 or n[0].typ.isNil: return
|
||||||
if dest < 0 and not isEmptyType(n.typ): dest = getTemp(c, n.typ)
|
if dest < 0 and not isEmptyType(n.typ): dest = getTemp(c, n.typ)
|
||||||
let x = c.getTempRange(n.len, slotTempUnknown)
|
let x = c.getTempRange(n.len, slotTempUnknown)
|
||||||
# varargs need 'opcSetType' for the FFI support:
|
# varargs need 'opcSetType' for the FFI support:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue