summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/WinEHPrepare.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-04-29 17:21:26 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-04-29 17:21:26 +0000
commita33f159056b31266808eb7cd66717b7726d06bc3 (patch)
treeaea529a1de7cf168e1490aff0996bae298ebb90e /llvm/lib/CodeGen/WinEHPrepare.cpp
parent0bb12a89815932c862bd6e0650b5e46e4c4321ec (diff)
downloadbcm5719-llvm-a33f159056b31266808eb7cd66717b7726d06bc3.tar.gz
bcm5719-llvm-a33f159056b31266808eb7cd66717b7726d06bc3.zip
[WinEH] Fix minor bug in begincatch block splitting
llvm-svn: 236129
Diffstat (limited to 'llvm/lib/CodeGen/WinEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index b78fdcd1897..0fa5a12e2da 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;
}
}
OpenPOWER on IntegriCloud