[llvm] 979db53 - [HWASan] [NFC] use auto* over auto& for pointers
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 18:23:57 PDT 2022
Author: Florian Mayer
Date: 2022-09-27T18:19:25-07:00
New Revision: 979db5343f01841e3866f6d7b2cbd96d23883c1e
URL: https://github.com/llvm/llvm-project/commit/979db5343f01841e3866f6d7b2cbd96d23883c1e
DIFF: https://github.com/llvm/llvm-project/commit/979db5343f01841e3866f6d7b2cbd96d23883c1e.diff
LOG: [HWASan] [NFC] use auto* over auto& for pointers
Added:
Modified:
llvm/lib/Target/AArch64/AArch64StackTagging.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
index 072b29fb3dfa3..42193c584346f 100644
--- a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
+++ b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
@@ -586,14 +586,14 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
uint64_t Size = *Info.AI->getAllocationSizeInBits(*DL) / 8;
Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy());
tagAlloca(AI, &*IRB.GetInsertPoint(), Ptr, Size);
- for (auto &RI : SInfo.RetVec) {
+ for (auto *RI : SInfo.RetVec) {
untagAlloca(AI, RI, Size);
}
// We may have inserted tag/untag outside of any lifetime interval.
// Remove all lifetime intrinsics for this alloca.
- for (auto &II : Info.LifetimeStart)
+ for (auto *II : Info.LifetimeStart)
II->eraseFromParent();
- for (auto &II : Info.LifetimeEnd)
+ for (auto *II : Info.LifetimeEnd)
II->eraseFromParent();
}
@@ -604,7 +604,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
// If we have instrumented at least one alloca, all unrecognized lifetime
// intrinsics have to go.
- for (auto &I : SInfo.UnrecognizedLifetimes)
+ for (auto *I : SInfo.UnrecognizedLifetimes)
I->eraseFromParent();
return true;
More information about the llvm-commits
mailing list