From 8b66412a8bfebcd53f09d0e608b418a05d13516a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 16 Sep 2020 19:41:14 +0200 Subject: [PATCH] fixes #9754 [backport] (#15342) --- lib/core/typeinfo.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index b1b9bcb27357..9fd8ebf8cef9 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]]) =