Add a missing check, this fixes UnitTests/Vector/sumarray.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-03 17:29:28 +00:00
parent a4c5d8c6b4
commit 97c2073270

View File

@ -2017,8 +2017,8 @@ SDOperand DAGCombiner::visitVBIT_CONVERT(SDNode *N) {
break;
}
if (isSimple) {
MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
if (isSimple && !MVT::isVector(DestEltVT)) {
return ConstantFoldVBIT_CONVERTofVBUILD_VECTOR(N0.Val, DestEltVT);
}
}