diff options
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h b/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h index 5a0fb835606a..0a5456c5956f 100644 --- a/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h +++ b/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h @@ -66,7 +66,7 @@ bool forAllReachableExits(const DominatorTree &DT, const PostDominatorTree &PDT, } SmallVector<Instruction *, 8> ReachableRetVec; unsigned NumCoveredExits = 0; - for (auto &RI : RetVec) { + for (auto *RI : RetVec) { if (!isPotentiallyReachable(Start, RI, nullptr, &DT)) continue; ReachableRetVec.push_back(RI); @@ -83,7 +83,7 @@ bool forAllReachableExits(const DominatorTree &DT, const PostDominatorTree &PDT, for (auto *End : Ends) Callback(End); } else { - for (auto &RI : ReachableRetVec) + for (auto *RI : ReachableRetVec) Callback(RI); // We may have inserted untag outside of the lifetime interval. // Signal the caller to remove the lifetime end call for this alloca. |