diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 0e1f0b9687c..8e78ce5eba4 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -484,7 +484,7 @@ void SelectionDAGLegalize::HandleOp(SDOperand Op) { unsigned NumElements = cast(N->getOperand(NumOps-2))->getValue(); MVT::ValueType EVT = cast(N->getOperand(NumOps-1))->getVT(); - MVT::ValueType PackedVT = getVectorType(EVT, NumElements); + MVT::ValueType PackedVT = MVT::getVectorType(EVT, NumElements); if (PackedVT != MVT::Other && TLI.isTypeLegal(PackedVT)) { // In the common case, this is a legal vector type, convert it to the // packed operation and type now.