summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-17 01:33:28 -0700
committerKazu Hirata <kazu@google.com>2022-07-17 01:33:28 -0700
commit9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885 (patch)
tree2d46af5667cb6f3ef51b9f382d9dde1f2127f2a9 /llvm/lib/CodeGen/StackMaps.cpp
parent6f32e71b540bcba7d228cab344ff73aac1d5b305 (diff)
[CodeGen] Qualify auto variables in for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/StackMaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index 6757d6ca4f88..ccaff862fa3f 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -365,7 +365,7 @@ StackMaps::parseRegisterLiveOutMask(const uint32_t *Mask) const {
});
for (auto I = LiveOuts.begin(), E = LiveOuts.end(); I != E; ++I) {
- for (auto II = std::next(I); II != E; ++II) {
+ for (auto *II = std::next(I); II != E; ++II) {
if (I->DwarfRegNum != II->DwarfRegNum) {
// Skip all the now invalid entries.
I = --II;