[cfe-commits] r64159 - /cfe/trunk/lib/CodeGen/CGStmt.cpp

Anders Carlsson andersca at mac.com
Mon Feb 9 12:31:03 PST 2009


Author: andersca
Date: Mon Feb  9 14:31:03 2009
New Revision: 64159

URL: http://llvm.org/viewvc/llvm-project?rev=64159&view=rev
Log:
Replace a bunch of EmitBranch calls with EmitBranchThroughCleanup. No functionality change (yet).

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

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Mon Feb  9 14:31:03 2009
@@ -314,7 +314,7 @@
     CGM.ErrorUnsupported(S.getLabel(),
                          "invalid goto to VLA scope that has finished");
 
-  EmitBranch(getBasicBlockForLabel(S.getLabel()));
+  EmitBranchThroughCleanup(getBasicBlockForLabel(S.getLabel()));
 }
 
 void CodeGenFunction::EmitIndirectGotoStmt(const IndirectGotoStmt &S) {
@@ -554,7 +554,7 @@
   } else {
     StoreComplexToAddr(RV.getComplexVal(), ReturnValue, false);
   }
-  EmitBranch(ReturnBlock);
+  EmitBranchThroughCleanup(ReturnBlock);
 }
 
 /// EmitReturnStmt - Note that due to GCC extensions, this can have an operand
@@ -597,7 +597,7 @@
     }
   } 
 
-  EmitBranch(ReturnBlock);
+  EmitBranchThroughCleanup(ReturnBlock);
 }
 
 void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) {
@@ -627,7 +627,7 @@
     assert (0 && "break vla botch");
 
   llvm::BasicBlock *Block = BreakContinueStack.back().BreakBlock;
-  EmitBranch(Block);
+  EmitBranchThroughCleanup(Block);
 }
 
 void CodeGenFunction::EmitContinueStmt(const ContinueStmt &S) {
@@ -651,7 +651,7 @@
     assert (0 && "continue vla botch");
 
   llvm::BasicBlock *Block = BreakContinueStack.back().ContinueBlock;
-  EmitBranch(Block);
+  EmitBranchThroughCleanup(Block);
 }
 
 /// EmitCaseStmtRange - If case statement range is not too big then





More information about the cfe-commits mailing list