[llvm-commits] [llvm] r136446 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Bill Wendling
isanbard at gmail.com
Thu Jul 28 18:15:29 PDT 2011
Author: void
Date: Thu Jul 28 20:15:29 2011
New Revision: 136446
URL: http://llvm.org/viewvc/llvm-project?rev=136446&view=rev
Log:
Use the pointer type size.
With this, we can now compile a simple EH program.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=136446&r1=136445&r2=136446&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Thu Jul 28 20:15:29 2011
@@ -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);
More information about the llvm-commits
mailing list