Use the pointer type size.
authorBill Wendling <isanbard@gmail.com>
Fri, 29 Jul 2011 01:15:29 +0000 (01:15 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 29 Jul 2011 01:15:29 +0000 (01:15 +0000)
With this, we can now compile a simple EH program.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index d1cab604cb1645e425456d65bf2dfbdd071c3105..498e1d3740129a28043c126f5873187ce1f4f928 100644 (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);