nimvm is magic
This commit is contained in:
parent
49869a2b10
commit
790ef23c48
3 changed files with 8 additions and 1 deletions
|
|
@ -640,6 +640,8 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
|
|||
of mNaN: result = newFloatNodeT(NaN, n)
|
||||
of mInf: result = newFloatNodeT(Inf, n)
|
||||
of mNegInf: result = newFloatNodeT(NegInf, n)
|
||||
of mNimvm:
|
||||
localError(n.info, "illegal context for 'nimvm' magic")
|
||||
else:
|
||||
if sfFakeConst notin s.flags: result = copyTree(s.ast)
|
||||
of {skProc, skMethod}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue