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

llvm-svn: 27375
This commit is contained in:
Chris Lattner 2006-04-03 17:29:28 +00:00
parent d9902c3de0
commit d13dd8ef5c

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);
}
}