[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Feb 22 01:25:01 PST 2004
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.138 -> 1.139
---
Log message:
Fix silly bug in implementation of getUseType(). Thanks Misha.
---
Diffs of the changes: (+1 -1)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.138 llvm/include/llvm/CodeGen/MachineInstr.h:1.139
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.138 Sun Feb 22 00:54:26 2004
+++ llvm/include/llvm/CodeGen/MachineInstr.h Sun Feb 22 01:24:19 2004
@@ -200,7 +200,7 @@
/// getUseType - Returns the MachineOperandUseType of this operand.
///
MOTy::UseType getUseType() const {
- return isUse() ^ isDef() ? MOTy::UseAndDef :
+ return isUse() & isDef() ? MOTy::UseAndDef :
(isUse() ? MOTy::Use : MOTy::Def);
}
More information about the llvm-commits
mailing list