mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Optional def can be either a def or a use (of reg0).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1386e9b7b1
commit
cac58aa80e
@ -634,7 +634,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
|
||||
if (MONum < MCID.getNumDefs()) {
|
||||
if (!MO->isReg())
|
||||
report("Explicit definition must be a register", MO, MONum);
|
||||
else if (!MO->isDef())
|
||||
else if (!MO->isDef() && !MCOI.isOptionalDef())
|
||||
report("Explicit definition marked as use", MO, MONum);
|
||||
else if (MO->isImplicit())
|
||||
report("Explicit definition marked as implicit", MO, MONum);
|
||||
|
Loading…
Reference in New Issue
Block a user