[llvm] fix[llvm-profgen]: resolve AddressRange type ambiguity. (PR #228536)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 10:46:00 PDT 2026
https://github.com/life-owns created https://github.com/llvm/llvm-project/pull/228536
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)
>From bea5790a881fb7912a6e2262b69aad187bb80a5a Mon Sep 17 00:00:00 2001
From: lins <lins at lifeowns.com>
Date: Sat, 3 Oct 2026 01:26:13 +0800
Subject: [PATCH] fix[llvm-profgen]: resolve AddressRange type ambiguity.
---
llvm/tools/llvm-profgen/ProfiledBinary.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.h b/llvm/tools/llvm-profgen/ProfiledBinary.h
index e4af7c0fdf7f4d..f7f935cebd313b 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 {
More information about the llvm-commits
mailing list