From d13d419d4a149735db301411fd3d4f41eb7efb72 Mon Sep 17 00:00:00 2001 From: Javed Absar Date: Mon, 30 Oct 2017 22:00:06 +0000 Subject: [PATCH] [AArch64]: range loopify frame-lowering llvm-svn: 316960 --- llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp index 60f8511..8ebcaff 100644 --- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp @@ -155,8 +155,8 @@ static unsigned estimateRSStackSizeLimit(MachineFunction &MF) { MI.getOpcode() == AArch64::ADDSXri) continue; - for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) { - if (!MI.getOperand(i).isFI()) + for (const MachineOperand &MO : MI.operands()) { + if (!MO.isFI()) continue; int Offset = 0; -- 2.7.4