]> granicus.if.org Git - clang/commitdiff
Replace a bunch of EmitBranch calls with EmitBranchThroughCleanup. No functionality...
authorAnders Carlsson <andersca@mac.com>
Mon, 9 Feb 2009 20:31:03 +0000 (20:31 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 9 Feb 2009 20:31:03 +0000 (20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64159 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmt.cpp

index 17b6fa4b48dab7e730ae2cd3860a0b82c284f9a2..6d9b5bba78b5ba3f4b26f8113dfbf12db46b876e 100644 (file)
@@ -314,7 +314,7 @@ void CodeGenFunction::EmitGotoStmt(const GotoStmt &S) {
     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 @@ void CodeGenFunction::EmitReturnOfRValue(RValue RV, QualType Ty) {
   } 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 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
     }
   } 
 
-  EmitBranch(ReturnBlock);
+  EmitBranchThroughCleanup(ReturnBlock);
 }
 
 void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) {
@@ -627,7 +627,7 @@ void CodeGenFunction::EmitBreakStmt(const BreakStmt &S) {
     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 @@ void CodeGenFunction::EmitContinueStmt(const ContinueStmt &S) {
     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