diff options
| author | 2024-04-12 01:35:39 -0700 | |
|---|---|---|
| committer | 2024-04-12 20:50:35 +0000 | |
| commit | b66eb3bc8793fdde9675742f3d7851422963adfb (patch) | |
| tree | c8fc5dcab8bee36ac048fb51c1e86f20994d2658 /compiler/optimizing/code_generator.h | |
| parent | 876dc7650f6c705e78641329b0974629b34af014 (diff) | |
Avoid comparing std::memory_order_relaxed with 0
Starting in C++20, std::memory_order becomes a scoped enum class, so
it cannot be compared to an integer, which happens when ASM_DEFINE
tries to detect if std::memory_order_relaxed is negative. Cast the
enumerator to its underlying type.
Bug: 311052584
Test: treehugger
Change-Id: Ic217c54628f6b13a86dcb83363690a87f0fc40e3
Diffstat (limited to 'compiler/optimizing/code_generator.h')
0 files changed, 0 insertions, 0 deletions