[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Thu May 11 18:46:39 PDT 2006
Changes in directory llvm/lib/Target:
TargetInstrInfo.cpp updated: 1.18 -> 1.19
---
Log message:
Typo! How did we commute nodes before?!
---
Diffs of the changes: (+1 -1)
TargetInstrInfo.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.18 llvm/lib/Target/TargetInstrInfo.cpp:1.19
--- llvm/lib/Target/TargetInstrInfo.cpp:1.18 Thu May 4 12:52:23 2006
+++ llvm/lib/Target/TargetInstrInfo.cpp Thu May 11 20:46:26 2006
@@ -45,7 +45,7 @@
assert(MI->getOperand(1).isRegister() && MI->getOperand(2).isRegister() &&
"This only knows how to commute register operands so far");
unsigned Reg1 = MI->getOperand(1).getReg();
- unsigned Reg2 = MI->getOperand(1).getReg();
+ unsigned Reg2 = MI->getOperand(2).getReg();
MI->getOperand(2).setReg(Reg1);
MI->getOperand(1).setReg(Reg2);
return MI;
More information about the llvm-commits
mailing list