[llvm] d5aec5e - [NFC] remove unnecessary references.

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 17:48:57 PST 2022


Author: Florian Mayer
Date: 2022-01-27T17:48:44-08:00
New Revision: d5aec5e260adc99d38ab56d9fc4d567d0764019c

URL: https://github.com/llvm/llvm-project/commit/d5aec5e260adc99d38ab56d9fc4d567d0764019c
DIFF: https://github.com/llvm/llvm-project/commit/d5aec5e260adc99d38ab56d9fc4d567d0764019c.diff

LOG: [NFC] remove unnecessary references.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h b/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
index 5a0fb835606a1..0a5456c5956f9 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
+++ b/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.


        


More information about the llvm-commits mailing list