fix something-o

llvm-svn: 24987
This commit is contained in:
Chris Lattner 2005-12-23 07:08:39 +00:00
parent 5427aab5f8
commit 55823ae03f
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ LowerOperation(SDOperand Op, SelectionDAG &DAG) {
return DAG.getNode(ISD::BIT_CONVERT, MVT::i32, Op);
case ISD::SINT_TO_FP: {
assert(Op.getOperand(0).getValueType() == MVT::i32);
Op = DAG.getNode(ISD::BIT_CONVERT, MVT::f32, Op);
Op = DAG.getNode(ISD::BIT_CONVERT, MVT::f32, Op.getOperand(0));
// Convert the int value to FP in an FP register.
return DAG.getNode(V8ISD::ITOF, Op.getValueType(), Op);
}