From a61bb7f0980805ef13ca188892ba17f386a2347d Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 15 Sep 2020 00:07:56 -0700 Subject: [PATCH] [NFC][Asan] Reorder bitfields Depends on D87644. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D87645 --- compiler-rt/lib/asan/asan_allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp index d136423..6daaacf 100644 --- a/compiler-rt/lib/asan/asan_allocator.cpp +++ b/compiler-rt/lib/asan/asan_allocator.cpp @@ -94,10 +94,10 @@ class ChunkHeader { // align < 8 -> 0 // else -> log2(min(align, 512)) - 2 - u16 user_requested_alignment_log : 3; + u8 user_requested_alignment_log : 3; private: - u16 user_requested_size_hi : 13; + u16 user_requested_size_hi; u32 user_requested_size_lo; atomic_uint64_t alloc_context_id; -- 2.7.4