[compiler-rt] r247840 - Fix compilation warning in compiler-rt.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 12:54:36 PDT 2015
Author: eugenis
Date: Wed Sep 16 14:54:36 2015
New Revision: 247840
URL: http://llvm.org/viewvc/llvm-project?rev=247840&view=rev
Log:
Fix compilation warning in compiler-rt.
error: width of bit-field 'allocated' (8 bits) exceeds the width of
its type; value will be truncated to 1 bit [-Werror,-Wbitfield-width]
Modified:
compiler-rt/trunk/lib/lsan/lsan_allocator.cc
Modified: compiler-rt/trunk/lib/lsan/lsan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_allocator.cc?rev=247840&r1=247839&r2=247840&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_allocator.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_allocator.cc Wed Sep 16 14:54:36 2015
@@ -26,7 +26,7 @@ extern "C" void *memset(void *ptr, int v
namespace __lsan {
struct ChunkMetadata {
- bool allocated : 8; // Must be first.
+ u8 allocated : 8; // Must be first.
ChunkTag tag : 2;
uptr requested_size : 54;
u32 stack_trace_id;
More information about the llvm-commits
mailing list