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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-02-22 07:24:19 +00:00
parent 3f1e8e7ceb
commit e33da36cbd

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