[llvm-commits] [llvm] r40066 - /llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Reid Spencer
rspencer at reidspencer.com
Thu Jul 19 14:05:31 PDT 2007
Author: reid
Date: Thu Jul 19 16:05:30 2007
New Revision: 40066
URL: http://llvm.org/viewvc/llvm-project?rev=40066&view=rev
Log:
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.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp?rev=40066&r1=40065&r2=40066&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp Thu Jul 19 16:05:30 2007
@@ -50,12 +50,12 @@
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.
More information about the llvm-commits
mailing list