summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-02-25 10:07:14 +0000
committerDaniel Jasper <djasper@google.com>2015-02-25 10:07:14 +0000
commitcd94c40b10573ce45604ac013241639d3d4c65b5 (patch)
tree99f46ed38533e3f2e379133298c6993b5d401e73 /clang/lib/CodeGen/CGException.cpp
parent56eadcf5ce7bb1cc5d3a4d25f40d73c882ef9087 (diff)
downloadbcm5719-llvm-cd94c40b10573ce45604ac013241639d3d4c65b5.tar.gz
bcm5719-llvm-cd94c40b10573ce45604ac013241639d3d4c65b5.zip
Revert "Produce less broken basic block sequences for __finally blocks."
The test is broken on buildbots: http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_check/2279/ This reverts commit adda738b6dc533c42db5f5f5b31344098a3aba7d. llvm-svn: 230472
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index b7953bcedc9..61f538b0eec 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -813,8 +813,8 @@ llvm::BasicBlock *CodeGenFunction::EmitLandingPad() {
bool hasFilter = false;
SmallVector<llvm::Value*, 4> filterTypes;
llvm::SmallPtrSet<llvm::Value*, 4> catchTypes;
- for (EHScopeStack::iterator I = EHStack.begin(), E = EHStack.end(); I != E;
- ++I) {
+ for (EHScopeStack::iterator I = EHStack.begin(), E = EHStack.end();
+ I != E; ++I) {
switch (I->getKind()) {
case EHScope::Cleanup:
@@ -1927,7 +1927,6 @@ void CodeGenFunction::ExitSEHTryStmt(const SEHTryStmt &S, SEHFinallyInfo &FI) {
assert(FI.ContBB && "did not emit normal cleanup");
// Emit the code into FinallyBB.
- CGBuilderTy::InsertPoint SavedIP = Builder.saveIP();
Builder.SetInsertPoint(FI.FinallyBB);
EmitStmt(Finally->getBlock());
@@ -1950,7 +1949,7 @@ void CodeGenFunction::ExitSEHTryStmt(const SEHTryStmt &S, SEHFinallyInfo &FI) {
Builder.CreateBr(FI.ContBB);
}
- Builder.restoreIP(SavedIP);
+ Builder.SetInsertPoint(FI.ContBB);
return;
}
OpenPOWER on IntegriCloud