[libc-commits] [libc] [libc] Fix -Wshadow warnings in freetrie.h (PR #196529)
via libc-commits
libc-commits at lists.llvm.org
Fri May 8 06:15:46 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Nico Weber (nico)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/196529.diff
1 Files Affected:
- (modified) libc/src/__support/freetrie.h (+2-2)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/196529
More information about the libc-commits
mailing list