[compiler-rt] a61bb7f - [NFC][Asan] Reorder bitfields

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 00:08:12 PDT 2020


Author: Vitaly Buka
Date: 2020-09-15T00:08:01-07:00
New Revision: a61bb7f0980805ef13ca188892ba17f386a2347d

URL: https://github.com/llvm/llvm-project/commit/a61bb7f0980805ef13ca188892ba17f386a2347d
DIFF: https://github.com/llvm/llvm-project/commit/a61bb7f0980805ef13ca188892ba17f386a2347d.diff

LOG: [NFC][Asan] Reorder bitfields

Depends on D87644.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87645

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_allocator.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp
index d136423a3e34a..6daaacf63c2ff 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;
 


        


More information about the llvm-commits mailing list