summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.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/Plugins/SymbolFile/DWARF/DWARFASTParserClang.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/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index def7eb2e1eb..b3c93678615 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -2664,7 +2664,7 @@ bool DWARFASTParserClang::ParseChildMembers(
DelayedPropertyList &delayed_properties, AccessType &default_accessibility,
bool &is_a_class, ClangASTImporter::LayoutInfo &layout_info) {
if (!parent_die)
- return 0;
+ return false;
// Get the parent byte size so we can verify any members will fit
const uint64_t parent_byte_size =
@@ -2679,7 +2679,7 @@ bool DWARFASTParserClang::ParseChildMembers(
ClangASTContext *ast =
llvm::dyn_cast_or_null<ClangASTContext>(class_clang_type.GetTypeSystem());
if (ast == nullptr)
- return 0;
+ return false;
for (DWARFDIE die = parent_die.GetFirstChild(); die.IsValid();
die = die.GetSibling()) {
OpenPOWER on IntegriCloud