diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-22 00:59:14 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-22 00:59:14 +0000 |
| commit | 1d634b2f44ea6c8b448047d9c14cf88b4ec76bc2 (patch) | |
| tree | 58ff4cb258e116bdfc69a6da9ef25f0f24ea5b4b /llvm/lib/Target | |
| parent | b676e5a6668e84d5f6421627fd478de4b21131dc (diff) | |
| download | bcm5719-llvm-1d634b2f44ea6c8b448047d9c14cf88b4ec76bc2.tar.gz bcm5719-llvm-1d634b2f44ea6c8b448047d9c14cf88b4ec76bc2.zip | |
Fix compilation of:
float %test2(float* %P) {
%Q = load float* %P
%R = add float %Q, %Q
ret float %R
}
By returning the right result.
llvm-svn: 22961
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index d6874fc6dbe..8e3e89c757d 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -962,7 +962,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { break; } } - return SDOperand(N, 0); + return SDOperand(N, Op.ResNo); } |

