[llvm] fix[llvm-profgen]: resolve AddressRange type ambiguity. (PR #228536)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 10:48:17 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: lins (life-owns)
<details>
<summary>Changes</summary>
llvm-profgen fails to build on main because llvm::sampleprof::AddressRange (a std::pair typedef, dead code since it was added) collides with the real llvm::AddressRange class from llvm/ADT/AddressRanges.h.
An inspection of `sampleprof::AddressRange` revealed no non-replaceable references; it can be safely removed.
See [issues](https://github.com/llvm/llvm-project/issues/228475)
---
Full diff: https://github.com/llvm/llvm-project/pull/228536.diff
1 Files Affected:
- (modified) llvm/tools/llvm-profgen/ProfiledBinary.h (-1)
``````````diff
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.h b/llvm/tools/llvm-profgen/ProfiledBinary.h
index e4af7c0fdf7f4dd..f7f935cebd313b5 100644
--- a/llvm/tools/llvm-profgen/ProfiledBinary.h
+++ b/llvm/tools/llvm-profgen/ProfiledBinary.h
@@ -190,7 +190,6 @@ class BinarySizeContextTracker {
ContextTrieNode RootContext;
};
-using AddressRange = std::pair<uint64_t, uint64_t>;
// The parsed MMap event
struct MMapEvent {
``````````
</details>
https://github.com/llvm/llvm-project/pull/228536
More information about the llvm-commits
mailing list