]> granicus.if.org Git - clang/commitdiff
Removed unneeded code for break/continue statements in
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 19 Aug 2009 21:10:38 +0000 (21:10 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 19 Aug 2009 21:10:38 +0000 (21:10 +0000)
manufactured for-loop per Anders feedback (thanks).

- Fariborz

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79466 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXX.cpp

index fce3288be1d5692532933687ede1492504f04fd2..deaac7499f8479551fe01d09ee38e4dc7277315e 100644 (file)
@@ -375,10 +375,6 @@ CodeGenFunction::EmitCXXAggrConstructorCall(const CXXConstructorDecl *D,
   
   llvm::BasicBlock *ContinueBlock = createBasicBlock("for.inc");
   
-  // Store the blocks to use for break and continue.
-  // FIXME. Is this needed?
-  BreakContinueStack.push_back(BreakContinue(AfterFor, ContinueBlock));
-  
   // Inside the loop body, emit the constructor call on the array element.
   Counter = Builder.CreateLoad(IndexPtr);
   llvm::Value *Address = Builder.CreateInBoundsGEP(This, Counter, "arrayidx");
@@ -390,9 +386,6 @@ CodeGenFunction::EmitCXXAggrConstructorCall(const CXXConstructorDecl *D,
   else
     EmitCXXConstructorCall(D, Ctor_Complete, Address, 0, 0);
   
-  // FIXME. Do we need this?
-  BreakContinueStack.pop_back();
-  
   EmitBlock(ContinueBlock);
   
   // Emit the increment of the loop counter.