forked from OSchip/llvm-project
Nate noticed that Andrew never did this. This fixes PR600
llvm-svn: 23110
This commit is contained in:
parent
e7a2998064
commit
56ca46ee04
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue