projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5f0419
)
Typo! How did we commute nodes before?!
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 12 May 2006 01:46:26 +0000
(
01:46
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 12 May 2006 01:46:26 +0000
(
01:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28229
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetInstrInfo.cpp
b/lib/Target/TargetInstrInfo.cpp
index 6377de88655ba0eccafcc4d01d560d4770277b97..4346203d91767061ef085f9a642019cdfccf5f2f 100644
(file)
--- a/
lib/Target/TargetInstrInfo.cpp
+++ b/
lib/Target/TargetInstrInfo.cpp
@@
-45,7
+45,7
@@
MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr *MI) const {
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;