commit | 741bf790b85595659c91d511c4ff60975180449f | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Fri Jul 29 01:15:29 2011 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Fri Jul 29 01:15:29 2011 +0000 |
tree | ffa6f9e18d9c822b274e849f3d47baaad2bbe1ff | |
parent | 7d44c453511ce4c43e0a3c128f018f04c330d390 [diff] [blame] |
Use the pointer type size. 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
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index d1cab60..498e1d3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -1834,7 +1834,7 @@ 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);