diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index f939eb3265..24c33e9fab 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -1308,6 +1308,7 @@ proc genTypeInfoV2(m: BModule, t, origType: PType, name: Rope; info: TLineInfo) else: typeName = rope("NIM_NIL") + discard cgsym(m, "TNimType") m.s[cfsData].addf("N_LIB_PRIVATE TNimType $1;$n", [name]) let destroyImpl = genHook(m, t, info, attachedDestructor) let traceImpl = genHook(m, t, info, attachedTrace)