forked from OSchip/llvm-project
Add missing bitcast that was breaking Objective-C++ exception typeinfo (GNUstep runtime).
llvm-svn: 153090
This commit is contained in:
parent
32a49333ec
commit
d663934b62
|
@ -933,7 +933,8 @@ llvm::Constant *CGObjCGNU::GetEHType(QualType T) {
|
|||
|
||||
// Return the existing typeinfo if it exists
|
||||
llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName);
|
||||
if (typeinfo) return typeinfo;
|
||||
if (typeinfo)
|
||||
return llvm::ConstantExpr::getBitCast(typeinfo, PtrToInt8Ty);
|
||||
|
||||
// Otherwise create it.
|
||||
|
||||
|
|
Loading…
Reference in New Issue