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,6 +84,7 @@ proc mangleLocalName(p: BProc; s: PSym): Rope =
|
||||||
result = s.loc.r
|
result = s.loc.r
|
||||||
if result == nil:
|
if result == nil:
|
||||||
var key = s.name.s.mangle
|
var key = s.name.s.mangle
|
||||||
|
when not defined(nimSeqsV2):
|
||||||
shallow(key)
|
shallow(key)
|
||||||
let counter = p.sigConflicts.getOrDefault(key)
|
let counter = p.sigConflicts.getOrDefault(key)
|
||||||
result = key.rope
|
result = key.rope
|
||||||
|
|
@ -102,6 +103,7 @@ proc scopeMangledParam(p: BProc; param: PSym) =
|
||||||
## generate unique identifiers reliably (consider that ``var a = a`` is
|
## generate unique identifiers reliably (consider that ``var a = a`` is
|
||||||
## even an idiom in Nim).
|
## even an idiom in Nim).
|
||||||
var key = param.name.s.mangle
|
var key = param.name.s.mangle
|
||||||
|
when not defined(nimSeqsV2):
|
||||||
shallow(key)
|
shallow(key)
|
||||||
p.sigConflicts.inc(key)
|
p.sigConflicts.inc(key)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ proc fileInfoIdx*(conf: ConfigRef; filename: AbsoluteFile; isKnownFile: var bool
|
||||||
|
|
||||||
try:
|
try:
|
||||||
canon = canonicalizePath(conf, filename)
|
canon = canonicalizePath(conf, filename)
|
||||||
|
when not defined(nimSeqsV2):
|
||||||
shallow(canon.string)
|
shallow(canon.string)
|
||||||
except OSError:
|
except OSError:
|
||||||
canon = filename
|
canon = filename
|
||||||
|
|
|
||||||
|
|
@ -399,6 +399,7 @@ proc recv*(socket: AsyncSocket, size: int,
|
||||||
## to be read then the future will complete with a value of `""`.
|
## to be read then the future will complete with a value of `""`.
|
||||||
if socket.isBuffered:
|
if socket.isBuffered:
|
||||||
result = newString(size)
|
result = newString(size)
|
||||||
|
when not defined(nimSeqsV2):
|
||||||
shallow(result)
|
shallow(result)
|
||||||
let originalBufPos = socket.currPos
|
let originalBufPos = socket.currPos
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue