summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 30cc5d9cbf2..7ef3ad0422f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -161,10 +161,9 @@ public:
CleanupEntryBB(CGF.createBasicBlock("ehcleanup.rest")),
PreviousInvokeDest(CGF.getInvokeDest()) {
CGF.EmitBranch(Cont);
+ llvm::BasicBlock *TerminateHandler = CGF.getTerminateHandler();
CGF.Builder.SetInsertPoint(CleanupEntryBB);
-
- // FIXME: set up terminate handler here
- // CGF.setInvokeDest(TerminateHandler);
+ CGF.setInvokeDest(TerminateHandler);
}
~EHCleanupBlock();
};
OpenPOWER on IntegriCloud