summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-01-10 00:22:37 +0100
committerAndreas Rumpf <rumpf_a@web.de>2020-01-10 08:32:30 +0100
commit033da35de164e4ea86e36c8c4bb366f3fc4ac01a (patch)
treefedacca7873b1ce8f0ac612628cb53f3ab02f947
parenta33b72af4960073b0dca95af3b430baade745b0b (diff)
downloadNim-033da35de164e4ea86e36c8c4bb366f3fc4ac01a.tar.gz
fixes #13072; no test case because it will be added later with more exception handling related bugfixes
-rw-r--r--compiler/ccgtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim
index 9c3e45697..9a1f8cc46 100644
--- a/compiler/ccgtypes.nim
+++ b/compiler/ccgtypes.nim
@@ -1256,7 +1256,7 @@ proc genTypeInfo2Name(m: BModule; t: PType): Rope =
   while it != nil:
     it = it.skipTypes(skipPtrs)
     if it.sym != nil:
-      var m = t.sym.owner
+      var m = it.sym.owner
       while m != nil and m.kind != skModule: m = m.owner
       if m == nil or sfSystemModule in m.flags:
         # produce short names for system types: