summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-03-20 16:25:52 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-03-20 16:25:52 +0000
commitd663934b62dc21822b06893e35c4708145c1436a (patch)
tree736a991a834092cc0a309bd874e62289c423a077 /clang/lib/CodeGen
parent32a49333ec46ea96f973dc0b4b5a7c9f8354e47c (diff)
downloadbcm5719-llvm-d663934b62dc21822b06893e35c4708145c1436a.tar.gz
bcm5719-llvm-d663934b62dc21822b06893e35c4708145c1436a.zip
Add missing bitcast that was breaking Objective-C++ exception typeinfo (GNUstep runtime).
llvm-svn: 153090
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 4dedc9de28f..6f3e5dc574f 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -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.
OpenPOWER on IntegriCloud