summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2018-03-23 12:28:22 +0000
committerAndreas Rumpf <rumpf_a@web.de>2018-03-23 13:28:22 +0100
commite2c2ae8e7e54ab333b578f707ac89c87c3390b4c (patch)
tree1118b51f2edb5f2dfd0bd0b49597136dc5cace1c /compiler
parenta0b547001bdf1ec583c4fdc3b2a635da6d2bdfa1 (diff)
downloadNim-e2c2ae8e7e54ab333b578f707ac89c87c3390b4c.tar.gz
fixes #7392 (#7395)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 060a5fdbd..6ea56d71d 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -2044,6 +2044,7 @@ proc upConv(p: BProc, n: PNode, d: var TLoc) =
       if t.kind notin {tyVar, tyLent} or not p.module.compileToCpp:
         r = "(*$1)" % [r]
       t = skipTypes(t.lastSon, abstractInst)
+    discard getTypeDesc(p.module, t)
     if not p.module.compileToCpp:
       while t.kind == tyObject and t.sons[0] != nil:
         add(r, ".Sup")