summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-02-25 20:12:49 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-02-25 20:12:49 +0000
commitb59b80b956e218a8475d94534e62c7e4e81c2192 (patch)
tree57444d26c333f2cfda4985a5e5d46d70852621a3 /llvm
parent443aa4b4b0cb7098fdf6ae238ebbbed3f64b4719 (diff)
downloadbcm5719-llvm-b59b80b956e218a8475d94534e62c7e4e81c2192.tar.gz
bcm5719-llvm-b59b80b956e218a8475d94534e62c7e4e81c2192.zip
Fixing a problem with insert location in WinEH outlining
llvm-svn: 230535
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index 1d5206c6cad..6f712a914f9 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/lib/CodeGen/WinEHPrepare.cpp
@@ -320,6 +320,7 @@ bool WinEHPrepare::prepareCPPEHHandlers(
// that pull the EHObjPtr from the frame alloc structure
for (AllocaInst *EHObjPtr : HandlerEHObjPtrs) {
Value *EHData = EHDataMap[EHObjPtr->getParent()->getParent()];
+ Builder.SetInsertPoint(EHObjPtr);
Value *ElementPtr = Builder.CreateConstInBoundsGEP2_32(EHData, 0, 1);
EHObjPtr->replaceAllUsesWith(ElementPtr);
EHObjPtr->removeFromParent();
OpenPOWER on IntegriCloud