diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 65d5ccae70..7f5e6d423c 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -200,7 +200,7 @@ public: /// 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); } |