Fix silly bug in implementation of getUseType(). Thanks Misha.

llvm-svn: 11711
This commit is contained in:
Alkis Evlogimenos 2004-02-22 07:24:19 +00:00
parent ade64c9839
commit abc8efe386

View File

@ -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);
}