[libc-commits] [libc] [libc] Fix -Wshadow warnings in freetrie.h (PR #196529)
Nico Weber via libc-commits
libc-commits at lists.llvm.org
Fri May 8 06:12:33 PDT 2026
https://github.com/nico created https://github.com/llvm/llvm-project/pull/196529
None
>From 9bbc6f846715c5b066197d989dbcdc092959699f Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis at chromium.org>
Date: Fri, 8 May 2026 09:12:02 -0400
Subject: [PATCH] [libc] Fix -Wshadow warnings in freetrie.h
---
libc/src/__support/freetrie.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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