[libc-commits] [libc] e7ea212 - [libc] Fix -Wshadow warnings in freetrie.h (#196529)
via libc-commits
libc-commits at lists.llvm.org
Sun May 10 07:19:17 PDT 2026
Author: Nico Weber
Date: 2026-05-10T10:19:13-04:00
New Revision: e7ea2127e37425fe738075328ce586b8b2f7811c
URL: https://github.com/llvm/llvm-project/commit/e7ea2127e37425fe738075328ce586b8b2f7811c
DIFF: https://github.com/llvm/llvm-project/commit/e7ea2127e37425fe738075328ce586b8b2f7811c.diff
LOG: [libc] Fix -Wshadow warnings in freetrie.h (#196529)
Added:
Modified:
libc/src/__support/freetrie.h
Removed:
################################################################################
diff --git a/libc/src/__support/freetrie.h b/libc/src/__support/freetrie.h
index 42363c2c9e2f4..c1a8306c6f8d2 100644
--- a/libc/src/__support/freetrie.h
+++ b/libc/src/__support/freetrie.h
@@ -87,9 +87,9 @@ class FreeTrie {
/// Sets the range of possible block sizes. This can only be called when the
/// trie is empty.
- LIBC_INLINE void set_range(FreeTrie::SizeRange range) {
+ LIBC_INLINE void set_range(FreeTrie::SizeRange new_range) {
LIBC_ASSERT(empty() && "cannot change the range of a preexisting trie");
- this->range = range;
+ range = new_range;
}
/// @returns Whether the trie contains any blocks.
More information about the libc-commits
mailing list