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; } }