mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
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:
parent
3f1e8e7ceb
commit
e33da36cbd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user