Fix regression found by g++.dg/eh/alias1.C.

llvm-svn: 92072
This commit is contained in:
Mike Stump 2009-12-23 22:48:20 +00:00
parent 452fc61a26
commit f3c23c0cd4
1 changed files with 4 additions and 0 deletions

View File

@ -603,6 +603,10 @@ static llvm::GlobalVariable::LinkageTypes getTypeInfoLinkage(QualType Ty) {
return llvm::GlobalValue::ExternalLinkage;
}
if (Ty->getTypeClass() == Type::Builtin) {
return llvm::GlobalValue::WeakODRLinkage;
}
assert(false && "Unhandled type!");
return llvm::GlobalValue::WeakODRLinkage;
}