Use the pointer type size.

With this, we can now compile a simple EH program.

llvm-svn: 136446
This commit is contained in:
Bill Wendling 2011-07-29 01:15:29 +00:00
parent 6a8cac735a
commit 7eadbeaf62
1 changed files with 1 additions and 1 deletions

View File

@ -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);