[Transforms] Qualify auto in range-based for loops (NFC)

Identified with readability-qualified-auto.
This commit is contained in:
Kazu Hirata
2022-08-27 21:21:02 -07:00
parent 33b9304435
commit 56ea4f9bd3
32 changed files with 94 additions and 93 deletions

View File

@@ -2733,7 +2733,7 @@ bool AddressSanitizer::instrumentFunction(Function &F,
F.getParent()->getDataLayout());
FunctionModified = true;
}
for (auto Inst : IntrinToInstrument) {
for (auto *Inst : IntrinToInstrument) {
if (!suppressInstrumentationSiteForDebug(NumInstrumented))
instrumentMemIntrinsic(Inst);
FunctionModified = true;
@@ -2744,12 +2744,12 @@ bool AddressSanitizer::instrumentFunction(Function &F,
// We must unpoison the stack before NoReturn calls (throw, _exit, etc).
// See e.g. https://github.com/google/sanitizers/issues/37
for (auto CI : NoReturnCalls) {
for (auto *CI : NoReturnCalls) {
IRBuilder<> IRB(CI);
IRB.CreateCall(AsanHandleNoReturnFunc, {});
}
for (auto Inst : PointerComparisonsOrSubtracts) {
for (auto *Inst : PointerComparisonsOrSubtracts) {
instrumentPointerComparisonOrSubtraction(Inst);
FunctionModified = true;
}
@@ -3342,7 +3342,8 @@ void FunctionStackPoisoner::processStaticAllocas() {
}
// We are done. Remove the old unused alloca instructions.
for (auto AI : AllocaVec) AI->eraseFromParent();
for (auto *AI : AllocaVec)
AI->eraseFromParent();
}
void FunctionStackPoisoner::poisonAlloca(Value *V, uint64_t Size,