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
commit 0314075639

View file

@ -95,7 +95,8 @@ proc cstrToNimstr(str: cstring): NimString {.compilerRtl.} =
if str == nil: NimString(nil) if str == nil: NimString(nil)
else: toNimStr(str, str.len) 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.} = proc copyString(src: NimString): NimString {.compilerRtl.} =
if src != nil: if src != nil: