diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp b/contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp index 62462b77eccf..50ba9fe75232 100644 --- a/contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp +++ b/contrib/llvm-project/llvm/lib/Target/ARC/ARCMCInstLower.cpp @@ -104,8 +104,7 @@ MCOperand ARCMCInstLower::LowerOperand(const MachineOperand &MO, void ARCMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { OutMI.setOpcode(MI->getOpcode()); - for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { - const MachineOperand &MO = MI->getOperand(i); + for (const MachineOperand &MO : MI->operands()) { MCOperand MCOp = LowerOperand(MO); if (MCOp.isValid()) |
