Add missing bitcast that was breaking Objective-C++ exception typeinfo (GNUstep runtime).

llvm-svn: 153090
This commit is contained in:
David Chisnall 2012-03-20 16:25:52 +00:00
parent 32a49333ec
commit d663934b62
1 changed files with 2 additions and 1 deletions

View File

@ -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.