aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCWin64EH.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-03 11:17:40 -0700
committerKazu Hirata <kazu@google.com>2022-09-03 11:17:40 -0700
commitfedc59734a44ef7b62c5f389b0cdffd02264b2a9 (patch)
tree78e86a59879b3ba34f94703fc76139a3b00690de /llvm/lib/MC/MCWin64EH.cpp
parentff2fe7b82974e01c61f4f7247be231182fb76591 (diff)
downloadllvm-fedc59734a44ef7b62c5f389b0cdffd02264b2a9.zip
llvm-fedc59734a44ef7b62c5f389b0cdffd02264b2a9.tar.gz
llvm-fedc59734a44ef7b62c5f389b0cdffd02264b2a9.tar.bz2
[llvm] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/MC/MCWin64EH.cpp')
-rw-r--r--llvm/lib/MC/MCWin64EH.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp
index 29a9adb..3e2bc34 100644
--- a/llvm/lib/MC/MCWin64EH.cpp
+++ b/llvm/lib/MC/MCWin64EH.cpp
@@ -2339,10 +2339,8 @@ static void ARMEmitUnwindInfo(MCStreamer &streamer, WinEH::FrameInfo *info,
// Emit epilog unwind instructions
for (auto &I : info->EpilogMap) {
auto &EpilogInstrs = I.second.Instructions;
- for (uint32_t i = 0; i < EpilogInstrs.size(); i++) {
- WinEH::Instruction inst = EpilogInstrs[i];
+ for (const WinEH::Instruction &inst : EpilogInstrs)
ARMEmitUnwindCode(streamer, inst);
- }
}
int32_t BytesMod = CodeWords * 4 - TotalCodeBytes;