aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <reid@x10sys.com>2007-07-19 21:05:30 +0000
committerReid Spencer <reid@x10sys.com>2007-07-19 21:05:30 +0000
commitddd33276097047345100dae74d033b5829782961 (patch)
treea3c18180d6ded91a30f02865a5c1bcad394824fe /lib
parent437d5a96fcb538172ca7dca0a8726cf27c928295 (diff)
downloadexternal_llvm-ddd33276097047345100dae74d033b5829782961.zip
external_llvm-ddd33276097047345100dae74d033b5829782961.tar.gz
external_llvm-ddd33276097047345100dae74d033b5829782961.tar.bz2
Hush a noisy warning from GCC 4.2 about overflow during conversion by using
the type "unsigned" instead of uintptr_t for a 1-bit structure field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 484af48..b7af521 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -50,12 +50,12 @@ namespace {
struct MemoryRangeHeader {
/// ThisAllocated - This is true if this block is currently allocated. If
/// not, this can be converted to a FreeRangeHeader.
- intptr_t ThisAllocated : 1;
+ unsigned ThisAllocated : 1;
/// PrevAllocated - Keep track of whether the block immediately before us is
/// allocated. If not, the word immediately before this header is the size
/// of the previous block.
- intptr_t PrevAllocated : 1;
+ unsigned PrevAllocated : 1;
/// BlockSize - This is the size in bytes of this memory block,
/// including this header.