diff options
-rw-r--r-- | compiler/ccgtypes.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index d4c11c20d..195417342 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -570,7 +570,8 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope = of tyRange, tyEnum: let t = if t.kind == tyRange: t.lastSon else: t result = getTypeName(t) - if isImportedCppType(t): return + if isImportedCppType(t) or + (sfImportc in t.sym.flags and t.sym.magic == mNone): return idTablePut(m.typeCache, t, result) var size: int if firstOrd(t) < 0: |