aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/Loads.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-01-28 09:51:14 +0000
committerJeremy Morse <jeremy.morse@sony.com>2025-01-28 11:37:11 +0000
commit304a99091c84f303ff5037dc6bf5455e4cfde7a1 (patch)
tree8a86869f4f42be86ec9fbe86c214a4451d519546 /llvm/lib/Analysis/Loads.cpp
parent7f845cba2ccc2ab637b8e40fbafb9f83a2d67c70 (diff)
downloadllvm-304a99091c84f303ff5037dc6bf5455e4cfde7a1.zip
llvm-304a99091c84f303ff5037dc6bf5455e4cfde7a1.tar.gz
llvm-304a99091c84f303ff5037dc6bf5455e4cfde7a1.tar.bz2
[NFC][DebugInfo] Use iterators for insertion at some final callsites
These are the callsites that have materialised in the last three weeks since I last built with deprecation warnings.
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
-rw-r--r--llvm/lib/Analysis/Loads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp
index 691d7e4..733a798 100644
--- a/llvm/lib/Analysis/Loads.cpp
+++ b/llvm/lib/Analysis/Loads.cpp
@@ -361,7 +361,7 @@ bool llvm::isDereferenceableAndAlignedInLoop(
} else
return false;
- Instruction *HeaderFirstNonPHI = L->getHeader()->getFirstNonPHI();
+ Instruction *HeaderFirstNonPHI = &*L->getHeader()->getFirstNonPHIIt();
return isDereferenceableAndAlignedPointer(Base, Alignment, AccessSize, DL,
HeaderFirstNonPHI, AC, &DT);
}