diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-24 00:44:33 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-24 00:44:33 +0000 |
commit | 09ad8c8f73dbc64efada18e7ae2f9b64eb1be215 (patch) | |
tree | 58cbfec2928c0ff577927df4c7096d141069da4f /lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp | |
parent | 060f4b48d55c761de2722c0b7387966d1e8ede0c (diff) | |
download | bcm5719-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/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp')
-rw-r--r-- | lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp index 0e26de569e8..93aa07f8916 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp @@ -334,9 +334,9 @@ bool ClassDescriptorV2::Describe( std::unique_ptr<class_rw_t> class_rw; if (!Read_objc_class(process, objc_class)) - return 0; + return false; if (!Read_class_row(process, *objc_class, class_ro, class_rw)) - return 0; + return false; static ConstString NSObject_name("NSObject"); |