summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-19 21:05:30 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-19 21:05:30 +0000
commit68ee4e8efc466e8346ae755724e0ff8082c6bc37 (patch)
tree73a1d9380e111d432bb0fc6cf85ab9e9580e2c39 /llvm/lib/ExecutionEngine
parentf9e6542969ff6c989d95adad7be7b0e26e29ad66 (diff)
downloadbcm5719-llvm-68ee4e8efc466e8346ae755724e0ff8082c6bc37.tar.gz
bcm5719-llvm-68ee4e8efc466e8346ae755724e0ff8082c6bc37.zip
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
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
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.
OpenPOWER on IntegriCloud