From 68ee4e8efc466e8346ae755724e0ff8082c6bc37 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 19 Jul 2007 21:05:30 +0000 Subject: 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. llvm-svn: 40066 --- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 484af4868af..b7af521dd97 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/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. -- cgit v1.2.3