diff options
Diffstat (limited to 'compiler-rt/lib/scudo/scudo_allocator.h')
| -rw-r--r-- | compiler-rt/lib/scudo/scudo_allocator.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator.h b/compiler-rt/lib/scudo/scudo_allocator.h index b9fc82dc672..5f5225b3628 100644 --- a/compiler-rt/lib/scudo/scudo_allocator.h +++ b/compiler-rt/lib/scudo/scudo_allocator.h @@ -22,8 +22,6 @@ # error "The Scudo hardened allocator is currently only supported on Linux." #endif -#include <atomic> - namespace __scudo { enum AllocType : u8 { @@ -58,7 +56,7 @@ struct UnpackedHeader { u64 Salt : 8; }; -typedef std::atomic<PackedHeader> AtomicPackedHeader; +typedef atomic_uint64_t AtomicPackedHeader; COMPILER_CHECK(sizeof(UnpackedHeader) == sizeof(PackedHeader)); // Minimum alignment of 8 bytes for 32-bit, 16 for 64-bit |

