Fix compilation of:

float %test2(float* %P) {
        %Q = load float* %P
        %R = add float %Q, %Q
        ret float %R
}

By returning the right result.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-22 00:59:14 +00:00
parent b30ee6a41a
commit ddf3e7dfd7

View File

@ -962,7 +962,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
break;
}
}
return SDOperand(N, 0);
return SDOperand(N, Op.ResNo);
}