[llvm-branch-commits] [MC][profgen][NFC] Expand auto for MCDecodedPseudoProbe (PR #102788)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Aug 10 23:18:53 PDT 2024


================
@@ -657,7 +657,7 @@ MCPseudoProbeDecoder::getCallProbeForAddr(uint64_t Address) const {
   const auto &Probes = It->second;
 
   const MCDecodedPseudoProbe *CallProbe = nullptr;
-  for (const auto &Probe : Probes) {
----------------
WenleiHe wrote:

Ok, then this change should be part of https://github.com/llvm/llvm-project/pull/102789, and should not be separated. Otherwise the motivation and effect of this change is lost, because the base side of this change still use `std::list`, and the change description stating "trigger type casts" can be confusing.

Suggest you merge it back (or at least fix change description). 

https://github.com/llvm/llvm-project/pull/102788


More information about the llvm-branch-commits mailing list