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
- rL LLVM
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 | Yes -- all the __cxx_atomic_foo functions take a memory_order argument, not an int. |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 | Oh, my bad. How did this pass the tests then..? |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 | The mismatch was only under the GCC implementation. |
libcxx/trunk/include/atomic | ||
---|---|---|
1458 | Ah, I see, thanks for the clarification. |
Some reason these arent static_casted?