remove shallow usages for ORC (#20109)
This commit is contained in:
parent
e8556b45f5
commit
9753dd0a1b
3 changed files with 8 additions and 4 deletions
|
|
@ -84,7 +84,8 @@ proc mangleLocalName(p: BProc; s: PSym): Rope =
|
|||
result = s.loc.r
|
||||
if result == nil:
|
||||
var key = s.name.s.mangle
|
||||
shallow(key)
|
||||
when not defined(nimSeqsV2):
|
||||
shallow(key)
|
||||
let counter = p.sigConflicts.getOrDefault(key)
|
||||
result = key.rope
|
||||
if s.kind == skTemp:
|
||||
|
|
@ -102,7 +103,8 @@ proc scopeMangledParam(p: BProc; param: PSym) =
|
|||
## generate unique identifiers reliably (consider that ``var a = a`` is
|
||||
## even an idiom in Nim).
|
||||
var key = param.name.s.mangle
|
||||
shallow(key)
|
||||
when not defined(nimSeqsV2):
|
||||
shallow(key)
|
||||
p.sigConflicts.inc(key)
|
||||
|
||||
const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue