[cfe-commits] r79466 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Aug 19 14:10:38 PDT 2009


Author: fjahanian
Date: Wed Aug 19 16:10:38 2009
New Revision: 79466

URL: http://llvm.org/viewvc/llvm-project?rev=79466&view=rev
Log:
Removed unneeded code for break/continue statements in
manufactured for-loop per Anders feedback (thanks).

- Fariborz

Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=79466&r1=79465&r2=79466&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Wed Aug 19 16:10:38 2009
@@ -375,10 +375,6 @@
   
   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 @@
   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.





More information about the cfe-commits mailing list