From 33747b6c41bdde751a237108bb6774acdedb2ff8 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 10 Feb 2009 05:52:02 +0000 Subject: Start removing the old Obj-C EH stack now that the cleanup stack is used instead. llvm-svn: 64203 --- clang/lib/CodeGen/CGObjC.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index efd9299d1a0..9adcc358f86 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -361,11 +361,6 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S) return; } - // We want to ensure that any vlas between here and when we - // push the break and continue context below can be destroyed - // when we break - llvm::Value *saveBreakStackDepth = StackDepth; - if (const DeclStmt *SD = dyn_cast(S.getElement())) { EmitStmt(SD); assert(HaveInsertPoint() && "DeclStmt destroyed insert point!"); @@ -520,8 +515,7 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S) llvm::BasicBlock *LoopEnd = createBasicBlock("loopend"); llvm::BasicBlock *AfterBody = createBasicBlock("afterbody"); - // Ensure any vlas created between there and here, are undone - BreakContinuePush(LoopEnd, AfterBody, saveBreakStackDepth, StackDepth); + BreakContinueStack.push_back(BreakContinue(LoopEnd, AfterBody)); EmitStmt(S.getBody()); -- cgit v1.2.3