Hush a noisy warning from GCC 4.2 about overflow during conversion by using
authorReid Spencer <rspencer@reidspencer.com>
Thu, 19 Jul 2007 21:05:30 +0000 (21:05 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 19 Jul 2007 21:05:30 +0000 (21:05 +0000)
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

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 484af4868afef173a81944fe1fc5e350e3fca507..b7af521dd971aa95e5263f1d51ef1088620bd363 100644 (file)
@@ -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.