mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Allow explicit %reg0 operands beyond what the .td file describes.
ARM uses these to indicate predicates. llvm-svn: 91922
This commit is contained in:
parent
237cb134ed
commit
d9cec1fbf7
@ -553,7 +553,8 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
|
||||
report("Explicit operand marked as implicit", MO, MONum);
|
||||
}
|
||||
} else {
|
||||
if (MO->isReg() && !MO->isImplicit() && !TI.isVariadic())
|
||||
// ARM adds %reg0 operands to indicate predicates. We'll allow that.
|
||||
if (MO->isReg() && !MO->isImplicit() && !TI.isVariadic() && MO->getReg())
|
||||
report("Extra explicit operand on non-variadic instruction", MO, MONum);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user