revert the 'wasMoved' logic until the write barrier has been adapted

This commit is contained in:
Andreas Rumpf
2017-09-29 11:33:40 +02:00
parent 70e94b8c9e
commit 0314075639

View File

@@ -95,7 +95,8 @@ proc cstrToNimstr(str: cstring): NimString {.compilerRtl.} =
if str == nil: NimString(nil)
else: toNimStr(str, str.len)
template wasMoved(x: NimString): bool = (x.reserved and seqShallowFlag) != 0
template wasMoved(x: NimString): bool = false
# (x.reserved and seqShallowFlag) != 0
proc copyString(src: NimString): NimString {.compilerRtl.} =
if src != nil: