diff options
author | jcosborn <jcosborn@users.noreply.github.com> | 2018-03-14 10:13:30 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-03-14 16:13:30 +0100 |
commit | cc5140d8b6ea8ca65ec9b74348cf23aec09d6723 (patch) | |
tree | b90183d9997571bab349af1b575ef43cf09eea48 | |
parent | 12f7b96be08cce291f33f79ea2d504d93fdc7974 (diff) | |
download | Nim-cc5140d8b6ea8ca65ec9b74348cf23aec09d6723.tar.gz |
reuse default ident in opcNNewNimNode (performance regression) (#7330)
* reuse default ident in opcNNewNimNode (performance regression) * use emptyIdent as default
-rw-r--r-- | compiler/vm.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index 23216f0a3..6ea6f1492 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -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) |