forked from OSchip/llvm-project
Use the pointer type size.
With this, we can now compile a simple EH program. llvm-svn: 136446
This commit is contained in:
parent
6a8cac735a
commit
7eadbeaf62
|
@ -1834,7 +1834,7 @@ void SelectionDAGBuilder::visitLandingPad(const LandingPadInst &LP) {
|
|||
SDValue Chain = Op1.getValue(1);
|
||||
|
||||
// Insert the EHSELECTION instruction.
|
||||
VTs = DAG.getVTList(ValueVTs[1], MVT::Other);
|
||||
VTs = DAG.getVTList(TLI.getPointerTy(), MVT::Other);
|
||||
Ops[0] = Op1;
|
||||
Ops[1] = Chain;
|
||||
SDValue Op2 = DAG.getNode(ISD::EHSELECTION, getCurDebugLoc(), VTs, Ops, 2);
|
||||
|
|
Loading…
Reference in New Issue