reuse default ident in opcNNewNimNode (performance regression) (#7330)
* reuse default ident in opcNNewNimNode (performance regression) * use emptyIdent as default
This commit is contained in:
parent
12f7b96be0
commit
cc5140d8b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1490,7 +1490,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
c.debug[pc])
|
||||
x.flags.incl nfIsRef
|
||||
# prevent crashes in the compiler resulting from wrong macros:
|
||||
if x.kind == nkIdent: x.ident = getIdent""
|
||||
if x.kind == nkIdent: x.ident = c.cache.emptyIdent
|
||||
regs[ra].node = x
|
||||
of opcNCopyNimNode:
|
||||
decodeB(rkNode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue