From a33f159056b31266808eb7cd66717b7726d06bc3 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 llvm-svn: 236129 --- llvm/lib/CodeGen/WinEHPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index b78fdcd..0fa5a12 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/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; } } -- 2.7.4