[all-commits] [llvm/llvm-project] 2c79f9: [libc++] Avoid type-punning locale in ios_base (#1...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Apr 30 01:28:11 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2c79f903048728b41c9399f0f8e822147934e4c1
https://github.com/llvm/llvm-project/commit/2c79f903048728b41c9399f0f8e822147934e4c1
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2026-04-30 (Thu, 30 Apr 2026)
Changed paths:
M libcxx/include/__locale
M libcxx/include/ios
M libcxx/src/ios.cpp
Log Message:
-----------
[libc++] Avoid type-punning locale in ios_base (#193507)
While there is currently a comment that all members of `ios_base` must
be scalars, I see no reason that is a correct statement. However, the
only place where this is relevant is `locale __loc_`. This patch
replaces the current `void*` implementation with `union { locale __loc_
}` to simplify `ios.cpp`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list