[libcxx-commits] [libcxx] [libc++][NFC] Remove some dead code in string (PR #94893)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 9 01:46:17 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Nikolas Klauser (philnik777)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/94893.diff
1 Files Affected:
- (modified) libcxx/include/string (+3-17)
``````````diff
diff --git a/libcxx/include/string b/libcxx/include/string
index 1db803e822d72..115cebbd9d074 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -868,23 +868,9 @@ private:
static_assert(sizeof(__short) == (sizeof(value_type) * (__min_cap + 1)), "__short has an unexpected size.");
- union __ulx {
- __long __lx;
- __short __lxx;
- };
-
- enum { __n_words = sizeof(__ulx) / sizeof(size_type) };
-
- struct __raw {
- size_type __words[__n_words];
- };
-
- struct __rep {
- union {
- __short __s;
- __long __l;
- __raw __r;
- };
+ union __rep {
+ __short __s;
+ __long __l;
};
__compressed_pair<__rep, allocator_type> __r_;
``````````
</details>
https://github.com/llvm/llvm-project/pull/94893
More information about the libcxx-commits
mailing list