minor bugfix for void .compileTime procs
This commit is contained in:
parent
d3a7fa20ae
commit
31db3aeade
1 changed files with 1 additions and 1 deletions
|
|
@ -662,7 +662,7 @@ proc evalAtCompileTime(c: PContext, n: PNode): PNode =
|
||||||
|
|
||||||
# optimization pass: not necessary for correctness of the semantic pass
|
# optimization pass: not necessary for correctness of the semantic pass
|
||||||
if {sfNoSideEffect, sfCompileTime} * callee.flags != {} and
|
if {sfNoSideEffect, sfCompileTime} * callee.flags != {} and
|
||||||
{sfForward, sfImportc} * callee.flags == {}:
|
{sfForward, sfImportc} * callee.flags == {} and n.typ != nil:
|
||||||
if sfCompileTime notin callee.flags and
|
if sfCompileTime notin callee.flags and
|
||||||
optImplicitStatic notin gOptions: return
|
optImplicitStatic notin gOptions: return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue