From 9afd19b2362ac55176010cd35bee2304db0ef440 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 3 Oct 2019 07:50:32 +0200 Subject: [PATCH] fixes #12291 [backport] (#12338) (cherry picked from commit c51857f4348823f647110e8a1ede07d76d93b7da) --- compiler/ccgtypes.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 3cb5089687..fa90bc3f58 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -287,6 +287,7 @@ proc fillResult(conf: ConfigRef; param: PNode) = proc typeNameOrLiteral(m: BModule; t: PType, literal: string): Rope = if t.sym != nil and sfImportc in t.sym.flags and t.sym.magic == mNone: + useHeader(m, t.sym) result = t.sym.loc.r else: result = rope(literal)