summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCRuntime.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2011-05-23 22:33:28 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2011-05-23 22:33:28 +0000
commit3fe89562e84b23ac96d54e972c344c00d21cf448 (patch)
tree81edcf706a2f91baafd8f5f639ce9405d86f9110 /clang/lib/CodeGen/CGObjCRuntime.cpp
parentdfb8cda11f1d2b71e2da28f3889bf7c704a7a6c5 (diff)
downloadbcm5719-llvm-3fe89562e84b23ac96d54e972c344c00d21cf448.tar.gz
bcm5719-llvm-3fe89562e84b23ac96d54e972c344c00d21cf448.zip
Fix some problems where functions must be bitcast but we're expecting a llvm::Function of the right type.
PR9994. llvm-svn: 131930
Diffstat (limited to 'clang/lib/CodeGen/CGObjCRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCRuntime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjCRuntime.cpp b/clang/lib/CodeGen/CGObjCRuntime.cpp
index 43fceceae2d..21150f1f848 100644
--- a/clang/lib/CodeGen/CGObjCRuntime.cpp
+++ b/clang/lib/CodeGen/CGObjCRuntime.cpp
@@ -165,9 +165,9 @@ namespace {
void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF,
const ObjCAtTryStmt &S,
- llvm::Function *beginCatchFn,
- llvm::Function *endCatchFn,
- llvm::Function *exceptionRethrowFn) {
+ llvm::Constant *beginCatchFn,
+ llvm::Constant *endCatchFn,
+ llvm::Constant *exceptionRethrowFn) {
// Jump destination for falling out of catch bodies.
CodeGenFunction::JumpDest Cont;
if (S.getNumCatchStmts())
OpenPOWER on IntegriCloud