This commit is contained in:
Andreas Rumpf
2016-05-11 21:56:56 +02:00
parent 1ae95310ad
commit 4f9083268f

View File

@@ -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: