aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-27 21:21:02 -0700
committerKazu Hirata <kazu@google.com>2022-08-27 21:21:02 -0700
commit56ea4f9bd3d6c44f95f9b7b8639c9db043448742 (patch)
tree12c00022b185f6db02177da719d47291994f3fdc /llvm/lib/Transforms/Utils/Local.cpp
parent33b93044352fae09376b7d71ce6f2441a34f343d (diff)
downloadllvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.zip
llvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.tar.gz
llvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.tar.bz2
[Transforms] Qualify auto in range-based for loops (NFC)
Identified with readability-qualified-auto.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 25043b3..c1735f7 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1653,12 +1653,12 @@ void llvm::insertDebugValuesForPHIs(BasicBlock *BB,
// propagate the info through the new PHI. If we use more than one new PHI in
// a single destination BB with the same old dbg.value, merge the updates so
// that we get a single new dbg.value with all the new PHIs.
- for (auto PHI : InsertedPHIs) {
+ for (auto *PHI : InsertedPHIs) {
BasicBlock *Parent = PHI->getParent();
// Avoid inserting an intrinsic into an EH block.
if (Parent->getFirstNonPHI()->isEHPad())
continue;
- for (auto VI : PHI->operand_values()) {
+ for (auto *VI : PHI->operand_values()) {
auto V = DbgValueMap.find(VI);
if (V != DbgValueMap.end()) {
auto *DbgII = cast<DbgVariableIntrinsic>(V->second);