diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-09 20:31:03 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-09 20:31:03 +0000 |
commit | 1ac6282c5b20e0fee54b61686ea25e8f9f522929 (patch) | |
tree | 369335b1c513b483f1891deb321cc1997def8a82 /clang | |
parent | 5b9974a81f51ff9ba32e0d0ef462246e838770ae (diff) | |
download | bcm5719-llvm-1ac6282c5b20e0fee54b61686ea25e8f9f522929.tar.gz bcm5719-llvm-1ac6282c5b20e0fee54b61686ea25e8f9f522929.zip |
Replace a bunch of EmitBranch calls with EmitBranchThroughCleanup. No functionality change (yet).
llvm-svn: 64159
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 17b6fa4b48d..6d9b5bba78b 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -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 |