Nate noticed that Andrew never did this. This fixes PR600

llvm-svn: 23110
This commit is contained in:
Chris Lattner 2005-08-26 22:50:40 +00:00
parent e7a2998064
commit 56ca46ee04
1 changed files with 1 additions and 1 deletions

View File

@ -2005,7 +2005,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
Result = DAG.getNode(ISD::UNDEF, NVT);
break;
case ISD::Constant:
Result = DAG.getNode(ISD::ZERO_EXTEND, NVT, Op);
Result = DAG.getNode(ISD::SIGN_EXTEND, NVT, Op);
assert(isa<ConstantSDNode>(Result) && "Didn't constant fold zext?");
break;
case ISD::ConstantFP: