summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index f1f6a8b8f32..5b6e497673c 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -945,8 +945,8 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
if (CleanupEndBB) {
EHStack.popPadEnd();
if (CleanupEndBB->hasNUsesOrMore(1)) {
- CurFn->getBasicBlockList().insertAfter(Builder.GetInsertBlock(),
- CleanupEndBB);
+ CurFn->getBasicBlockList().insertAfter(
+ Builder.GetInsertBlock()->getIterator(), CleanupEndBB);
} else {
delete CleanupEndBB;
}
OpenPOWER on IntegriCloud