diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-07 00:04:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 18:04:08 +0200 |
commit | 53c15f24e923379f74506949eb49433d232b48ad (patch) | |
tree | 173bc03cbb649060784cb4fe2ef242999faed0ea /compiler/vmgen.nim | |
parent | b74d49c037734079765770426d0f5c79dee6cf87 (diff) | |
download | Nim-53c15f24e923379f74506949eb49433d232b48ad.tar.gz |
fixes #21704; remove nfIsRef for genLit in VM (#21765)
* fixes #21704; remove `nfIsRef` for genLit * remove nfIsRef from the output of macros * make the logic better * try again * act together * excl nfIsRef
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r-- | compiler/vmgen.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 48792790d..db3276aad 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -443,6 +443,7 @@ proc rawGenLiteral(c: PCtx; n: PNode): int = result = c.constants.len #assert(n.kind != nkCall) n.flags.incl nfAllConst + n.flags.excl nfIsRef c.constants.add n internalAssert c.config, result < regBxMax |