summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCRuntime.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2015-10-30 00:56:02 +0000
committerJohn McCall <rjmccall@apple.com>2015-10-30 00:56:02 +0000
commit17f0275d4c2ea19b5a2376e3b008c41f18358d31 (patch)
tree8fce310dd5d44695ce96303733ec6541d2bbcfdc /clang/lib/CodeGen/CGObjCRuntime.h
parentca64d675f1201d022ee65e86aec3359b8b1778be (diff)
downloadbcm5719-llvm-17f0275d4c2ea19b5a2376e3b008c41f18358d31.tar.gz
bcm5719-llvm-17f0275d4c2ea19b5a2376e3b008c41f18358d31.zip
Initialize @catch variables correctly in fragile-runtime ARC.
llvm-svn: 251677
Diffstat (limited to 'clang/lib/CodeGen/CGObjCRuntime.h')
-rw-r--r--clang/lib/CodeGen/CGObjCRuntime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCRuntime.h b/clang/lib/CodeGen/CGObjCRuntime.h
index 1632713c32a..9b0706770aa 100644
--- a/clang/lib/CodeGen/CGObjCRuntime.h
+++ b/clang/lib/CodeGen/CGObjCRuntime.h
@@ -100,6 +100,10 @@ protected:
llvm::Constant *beginCatchFn,
llvm::Constant *endCatchFn,
llvm::Constant *exceptionRethrowFn);
+
+ void EmitInitOfCatchParam(CodeGenFunction &CGF, llvm::Value *exn,
+ const VarDecl *paramDecl);
+
/// Emits an \@synchronize() statement, using the \p syncEnterFn and
/// \p syncExitFn arguments as the functions called to lock and unlock
/// the object. This function can be called by subclasses that use
OpenPOWER on IntegriCloud