summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-05-11 01:11:55 +0000
committerBill Wendling <isanbard@gmail.com>2011-05-11 01:11:55 +0000
commit50117f81862fa1f6c5f50db9ca32ac8fa2776255 (patch)
treea934361b1612c654bd8e22c6c0eeb4b81b53b061 /llvm/lib/CodeGen/SelectionDAG
parente2b889be6559de5e7dd62f043810d310dd8fde25 (diff)
downloadbcm5719-llvm-50117f81862fa1f6c5f50db9ca32ac8fa2776255.tar.gz
bcm5719-llvm-50117f81862fa1f6c5f50db9ca32ac8fa2776255.zip
Give the 'eh.sjlj.dispatchsetup' intrinsic call the value coming from the setjmp
intrinsic call. This prevents it from being reordered so that it appears *before* the setjmp intrinsic (thus making it completely useless). <rdar://problem/9409683> llvm-svn: 131174
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index e5329f76f1c..73a44e9e1a2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4403,7 +4403,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
}
case Intrinsic::eh_sjlj_dispatch_setup: {
DAG.setRoot(DAG.getNode(ISD::EH_SJLJ_DISPATCHSETUP, dl, MVT::Other,
- getRoot()));
+ getRoot(), getValue(I.getArgOperand(0))));
return 0;
}
OpenPOWER on IntegriCloud