diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 9c0e30e9f4..1de3bf94b9 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -1671,6 +1671,9 @@ std::string llvmTypeToString(llvm::Type *type) { } bool isDefaultLibSymbol(Dsymbol *sym) { + if (defineOnDeclare(sym)) + return false; + auto mod = sym->getModule(); if (!mod) return false;