summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-19 00:44:01 +0000
committerEric Christopher <echristo@apple.com>2011-10-19 00:44:01 +0000
commit7ec8ec8581112f7e56785618c47d84b60ad80604 (patch)
tree9172075aab5bd5b480341e8a4ff0805bfb329087 /clang/lib
parenta9d3497b5e7a2a1fff456737e647a69092839c2b (diff)
downloadbcm5719-llvm-7ec8ec8581112f7e56785618c47d84b60ad80604.tar.gz
bcm5719-llvm-7ec8ec8581112f7e56785618c47d84b60ad80604.zip
Add block information for ObjC @catch blocks.
Fixes rdar://10282889 llvm-svn: 142467
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGObjCRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCRuntime.cpp b/clang/lib/CodeGen/CGObjCRuntime.cpp
index ef426ce6ed9..bcacb8ea467 100644
--- a/clang/lib/CodeGen/CGObjCRuntime.cpp
+++ b/clang/lib/CodeGen/CGObjCRuntime.cpp
@@ -229,7 +229,7 @@ void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF,
cast<llvm::CallInst>(Exn)->setDoesNotThrow();
}
- CodeGenFunction::RunCleanupsScope cleanups(CGF);
+ CodeGenFunction::LexicalScope cleanups(CGF, Handler.Body->getSourceRange());
if (endCatchFn) {
// Add a cleanup to leave the catch.
OpenPOWER on IntegriCloud