forked from OSchip/llvm-project
Fix regression found by g++.dg/eh/alias1.C.
llvm-svn: 92072
This commit is contained in:
parent
452fc61a26
commit
f3c23c0cd4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue