summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorTim Hammerquist <penryu@apple.com>2017-06-29 23:33:40 +0000
committerTim Hammerquist <penryu@apple.com>2017-06-29 23:33:40 +0000
commit0a94072e4d577397a989aa056c36f70f64fbba24 (patch)
tree76683fb617440a5e076db9cd6ec12cc5df3f88b9 /lldb/source
parent6d441bf05f5594902077d32e82aacb9e9ab16c88 (diff)
downloadbcm5719-llvm-0a94072e4d577397a989aa056c36f70f64fbba24.tar.gz
bcm5719-llvm-0a94072e4d577397a989aa056c36f70f64fbba24.zip
Fix some type-based warnings
llvm-svn: 306765
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp2
-rw-r--r--lldb/source/Plugins/Language/ObjC/Cocoa.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index cfd8fcb7291..687187b26cc 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -209,7 +209,7 @@ protected:
Process *process = m_exe_ctx.GetProcessPtr();
Thread *thread = process->GetThreadList().FindThreadByID(tid).get();
if (thread == nullptr) {
- result.AppendErrorWithFormat("Failed to process thread# %lu.\n", tid);
+ result.AppendErrorWithFormat("Failed to process thread# %llu.\n", tid);
result.SetStatus(eReturnStatusFailed);
return false;
}
diff --git a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
index 6aaf66cbb48..2ba005e02ad 100644
--- a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
+++ b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
@@ -517,11 +517,11 @@ bool lldb_private::formatters::NSNumberSummaryProvider(
bool is_preserved_number = cfinfoa & 0x8;
if (is_preserved_number) {
- lldbassert(!"We should handle preserved numbers!");
+ lldbassert(!static_cast<bool>("We should handle preserved numbers!"));
return false;
}
- type_code = (TypeCodes)(cfinfoa & 0x7);
+ type_code = static_cast<TypeCodes>(cfinfoa & 0x7);
} else {
uint8_t data_type =
process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + ptr_size, 1,
OpenPOWER on IntegriCloud