[Transforms] Qualify auto in range-based for loops (NFC)
Identified with readability-qualified-auto.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user