[WinEH] Fix minor bug in begincatch block splitting
authorAndrew Kaylor <andrew.kaylor@intel.com>
Wed, 29 Apr 2015 17:21:26 +0000 (17:21 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Wed, 29 Apr 2015 17:21:26 +0000 (17:21 +0000)
llvm-svn: 236129

llvm/lib/CodeGen/WinEHPrepare.cpp

index b78fdcd..0fa5a12 100644 (file)
@@ -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;
         }
       }