[cfe-commits] r92072 - /cfe/trunk/lib/CodeGen/CGRTTI.cpp
Mike Stump
mrs at apple.com
Wed Dec 23 14:48:20 PST 2009
Author: mrs
Date: Wed Dec 23 16:48:20 2009
New Revision: 92072
URL: http://llvm.org/viewvc/llvm-project?rev=92072&view=rev
Log:
Fix regression found by g++.dg/eh/alias1.C.
Modified:
cfe/trunk/lib/CodeGen/CGRTTI.cpp
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=92072&r1=92071&r2=92072&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Wed Dec 23 16:48:20 2009
@@ -603,6 +603,10 @@
return llvm::GlobalValue::ExternalLinkage;
}
+ if (Ty->getTypeClass() == Type::Builtin) {
+ return llvm::GlobalValue::WeakODRLinkage;
+ }
+
assert(false && "Unhandled type!");
return llvm::GlobalValue::WeakODRLinkage;
}
More information about the cfe-commits
mailing list