D125496 changed the string layout on windows. Change __is_long_ and __size_ back to using unsigned char to fix the issue.
Details
Details
- Reviewers
ldionne Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG0d108f790858: [libc++] Use unsigned char in basic_string::__short again
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
libcxx/include/string | ||
---|---|---|
697 | I agree re binding this behavior with a test to avoid surprises again in the future. |
Comment Actions
It seems like AIX is currently broken. I'll land it for now. If this breaks AIX (which it shouldn't) we'll know and I can try to fix it then.
Comment Actions
We need to add a test (in libcxx/test/libcxx/) to ensure that we can't regress this in the future.
As I already commented on D125496 I think we should add static_asserts validating the size. That should catch these errors in our CI.
(same for the one below.)