summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Address.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-24 00:44:33 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-24 00:44:33 +0000
commit09ad8c8f73dbc64efada18e7ae2f9b64eb1be215 (patch)
tree58cbfec2928c0ff577927df4c7096d141069da4f /lldb/source/Core/Address.cpp
parent060f4b48d55c761de2722c0b7387966d1e8ede0c (diff)
downloadbcm5719-llvm-09ad8c8f73dbc64efada18e7ae2f9b64eb1be215.tar.gz
bcm5719-llvm-09ad8c8f73dbc64efada18e7ae2f9b64eb1be215.zip
Fix integer literals which are cast to bool
This change replaces built-in types that are implicitly converted to booleans. Differential revision: https://reviews.llvm.org/D62284 llvm-svn: 361580
Diffstat (limited to 'lldb/source/Core/Address.cpp')
-rw-r--r--lldb/source/Core/Address.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp
index 9520e43697e..0da83eb98ed 100644
--- a/lldb/source/Core/Address.cpp
+++ b/lldb/source/Core/Address.cpp
@@ -161,7 +161,7 @@ static bool ReadAddress(ExecutionContextScope *exe_scope,
static bool DumpUInt(ExecutionContextScope *exe_scope, const Address &address,
uint32_t byte_size, Stream *strm) {
if (exe_scope == nullptr || byte_size == 0)
- return 0;
+ return false;
std::vector<uint8_t> buf(byte_size, 0);
if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) {
OpenPOWER on IntegriCloud