In https://reviews.llvm.org/D58201, we turned memory_order into an enum
class in C++20 mode. However, we were not casting memory_order to its
underlying type correctly for the GCC implementation, which broke the
build bots. I also fixed a test that was failing in C++17 mode on GCC 5.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 28800 Build 28799: arc lint + arc unit
Event Timeline
Comment Actions
Will commit to fix the build, please comment if you would rather fix the problem differently.
libcxx/trunk/include/atomic | ||
---|---|---|
1458 ↗ | (On Diff #189323) | Yes -- all the __cxx_atomic_foo functions take a memory_order argument, not an int. |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 ↗ | (On Diff #189323) | Oh, my bad. How did this pass the tests then..? |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 ↗ | (On Diff #189323) | The mismatch was only under the GCC implementation. |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 ↗ | (On Diff #189323) | Ah, I see, thanks for the clarification. |