summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-03-03 19:15:20 +0000
committerGreg Clayton <gclayton@apple.com>2014-03-03 19:15:20 +0000
commit6fea17e8740b0c0687e0f945a3dd19eea32ec8e9 (patch)
tree68ec1ece80c357f12891d4c6c9c74f9b7443eee1 /lldb/source/Expression/IRForTarget.cpp
parente6d398189e81533427e5ec0d6602310f67747603 (diff)
downloadbcm5719-llvm-6fea17e8740b0c0687e0f945a3dd19eea32ec8e9.tar.gz
bcm5719-llvm-6fea17e8740b0c0687e0f945a3dd19eea32ec8e9.zip
"size_t" isn't always 64 bit, it is 32 bit on 32 bit systems. All printf style statements that were assuming size_t were 64 bit were changed, and they were also changed to display them as unsigned values as "size_t" isn't signed.
If you print anything with 'size_t', please cast it to "uint64_t" in the printf and use PRIu64 or PRIx64. llvm-svn: 202738
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r--lldb/source/Expression/IRForTarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index f64da07f0c2..6de244648a2 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -2016,7 +2016,7 @@ IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block)
}
ss.flush();
- log->Printf("Found ConstantFP with size %" PRId64 " and raw data %s", operand_data_size, s.c_str());
+ log->Printf("Found ConstantFP with size %" PRIu64 " and raw data %s", (uint64_t)operand_data_size, s.c_str());
}
lldb_private::DataBufferHeap data(operand_data_size, 0);
@@ -2479,7 +2479,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function)
}
if (log)
- log->Printf("Total structure [align %" PRId64 ", size %" PRId64 "]", alignment, size);
+ log->Printf("Total structure [align %" PRId64 ", size %" PRIu64 "]", (int64_t)alignment, (uint64_t)size);
return true;
}
OpenPOWER on IntegriCloud