diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-17 01:33:28 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-17 01:33:28 -0700 |
commit | 9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885 (patch) | |
tree | 2d46af5667cb6f3ef51b9f382d9dde1f2127f2a9 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 6f32e71b540bcba7d228cab344ff73aac1d5b305 (diff) | |
download | llvm-9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885.zip llvm-9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885.tar.gz llvm-9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885.tar.bz2 |
[CodeGen] Qualify auto variables in for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f58996e..6b481a3 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -911,8 +911,8 @@ static const MachineInstr *getCallInstr(const MachineInstr *MI) { if (!MI->isBundle()) return MI; - for (auto &BMI : make_range(getBundleStart(MI->getIterator()), - getBundleEnd(MI->getIterator()))) + for (const auto &BMI : make_range(getBundleStart(MI->getIterator()), + getBundleEnd(MI->getIterator()))) if (BMI.isCandidateForCallSiteEntry()) return &BMI; |