From: Duncan Sands Date: Thu, 25 Oct 2007 12:30:51 +0000 (+0000) Subject: Correctly extract the ValueType from a VTSDNode. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a3d10d808eb68c8e330eee382168cd747c718baf;p=oota-llvm.git Correctly extract the ValueType from a VTSDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp index e5f8edd57d8..5e5b07443ec 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp @@ -903,7 +903,7 @@ void DAGTypeLegalizer::ExpandResult_BIT_CONVERT(SDNode *N, void DAGTypeLegalizer:: ExpandResult_SIGN_EXTEND_INREG(SDNode *N, SDOperand &Lo, SDOperand &Hi) { GetExpandedOp(N->getOperand(0), Lo, Hi); - MVT::ValueType EVT = N->getOperand(1).getValueType(); + MVT::ValueType EVT = cast(N->getOperand(1))->getVT(); if (MVT::getSizeInBits(EVT) <= MVT::getSizeInBits(Lo.getValueType())) { // sext_inreg the low part if needed.