mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
MachineOperand::setIsDebug should ensure the register is /not/ a definition
This currently unused function appeared to be asserting in the wrong direction - DebugValues are never definitions of registers, only uses. Curiously we don't perform any of these checks for the more common (& actually used) case of MachineOperand::CreateReg (or other Create functions). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53aaef8240
commit
b7770e0b85
@ -391,7 +391,7 @@ public:
|
||||
}
|
||||
|
||||
void setIsDebug(bool Val = true) {
|
||||
assert(isReg() && IsDef && "Wrong MachineOperand accessor");
|
||||
assert(isReg() && !IsDef && "Wrong MachineOperand accessor");
|
||||
IsDebug = Val;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user