diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-09-16 19:41:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 19:41:14 +0200 |
commit | 8b66412a8bfebcd53f09d0e608b418a05d13516a (patch) | |
tree | ba0ecee5b3f5bf7e853b0f582f025fbcb0be3033 /lib/core | |
parent | 341be0b61cc0603dc921c99b891208dcda274c98 (diff) | |
download | Nim-8b66412a8bfebcd53f09d0e608b418a05d13516a.tar.gz |
fixes #9754 [backport] (#15342)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/typeinfo.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index b1b9bcb27..9fd8ebf8c 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -327,10 +327,7 @@ proc setPointer*(x: Any, y: pointer) = ## ``akString``, ``akCString``, ``akProc``, ``akRef``, ``akPtr``, ## ``akPointer``, ``akSequence``. assert x.rawType.kind in pointerLike - when defined(gcDestructors): - genericAssign(x.value, y, x.rawType) - else: - cast[ppointer](x.value)[] = y + genericAssign(x.value, y, x.rawType) proc fieldsAux(p: pointer, n: ptr TNimNode, ret: var seq[tuple[name: cstring, any: Any]]) = |