Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 26, 2025

@llvm/pr-subscribers-bolt

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/141520.diff

1 Files Affected:

  • (modified) bolt/lib/Profile/BoltAddressTranslation.cpp (+1-1)
diff --git a/bolt/lib/Profile/BoltAddressTranslation.cpp b/bolt/lib/Profile/BoltAddressTranslation.cpp
index 4d005f942699e..a253522e4fb15 100644
--- a/bolt/lib/Profile/BoltAddressTranslation.cpp
+++ b/bolt/lib/Profile/BoltAddressTranslation.cpp
@@ -600,7 +600,7 @@ BoltAddressTranslation::getSecondaryEntryPointId(uint64_t Address,
   if (FunctionIt == SecondaryEntryPointsMap.end())
     return 0;
   const std::vector<uint32_t> &Offsets = FunctionIt->second;
-  auto OffsetIt = std::find(Offsets.begin(), Offsets.end(), Offset);
+  auto OffsetIt = llvm::find(Offsets, Offset);
   if (OffsetIt == Offsets.end())
     return 0;
   // Adding one here because main entry point is not stored in BAT, and

@kazutakahirata kazutakahirata merged commit a0c33e5 into llvm:main May 26, 2025
12 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250526_llvm_find_bolt branch May 26, 2025 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants