don't rely on ADL

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-03-24 17:37:03 +00:00
parent 0d3988f408
commit 82dcb4fe23

View File

@ -484,7 +484,7 @@ void SelectionDAGLegalize::HandleOp(SDOperand Op) {
unsigned NumElements =
cast<ConstantSDNode>(N->getOperand(NumOps-2))->getValue();
MVT::ValueType EVT = cast<VTSDNode>(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.