mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
reuse default ident in opcNNewNimNode (performance regression) (#7330)
* reuse default ident in opcNNewNimNode (performance regression) * use emptyIdent as default
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user