From a147b2575b9a8a30a64a70036280c6125720cc6a Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Wed, 29 Apr 2015 17:21:26 +0000 Subject: [PATCH] [WinEH] Fix minor bug in begincatch block splitting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236129 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index b78fdcd1897..0fa5a12e2da 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -448,7 +448,7 @@ void WinEHPrepare::findCXXEHReturnPoints( // cleanup and catch code to be distinguished later. // Do not update BBI because we still need to process the // portion of the block that we are splitting off. - SplitBlock(BB, &I, DT); + SplitBlock(BB, SplitPt, DT); break; } }