diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-13 22:52:24 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-13 22:52:24 +0000 |
commit | e21269bcb732afa70386fdd4c95d22bc2ed943b1 (patch) | |
tree | a7a7607d96805c3a9ce4c7c701707c24796ac855 /lib/CodeGen/CGObjC.cpp | |
parent | aaa63a761c6671a08e3f4f463435b72739fa194b (diff) |
Store the size of the EH stack inside each BreakContinue struct so we know when a break/continue won't cross a try block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index f955782ffd..0237b96b51 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -492,7 +492,8 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S) llvm::BasicBlock *LoopEnd = createBasicBlock("loopend"); llvm::BasicBlock *AfterBody = createBasicBlock("afterbody"); - BreakContinueStack.push_back(BreakContinue(LoopEnd, AfterBody)); + BreakContinueStack.push_back(BreakContinue(LoopEnd, AfterBody, + ObjCEHStack.size())); EmitStmt(S.getBody()); |