[PATCH] D10005: Refactor: Simplify boolean expressions in tools/llvm-objdump
Richard via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 11:43:33 PDT 2015
LegalizeAdulthood updated this revision to Diff 38316.
LegalizeAdulthood added a comment.
Update to latest.
I do not have commit access.
http://reviews.llvm.org/D10005
Files:
tools/llvm-objdump/MachODump.cpp
Index: tools/llvm-objdump/MachODump.cpp
===================================================================
--- tools/llvm-objdump/MachODump.cpp
+++ tools/llvm-objdump/MachODump.cpp
@@ -4351,7 +4351,7 @@
if (cro.baseProperties + n_value != 0)
print_objc_property_list64(cro.baseProperties + n_value, info);
- is_meta_class = (cro.flags & RO_META) ? true : false;
+ is_meta_class = (cro.flags & RO_META) != 0;
return true;
}
@@ -4415,7 +4415,7 @@
<< format("0x%" PRIx32, cro.baseProperties) << "\n";
if (cro.baseProperties != 0)
print_objc_property_list32(cro.baseProperties, info);
- is_meta_class = (cro.flags & RO_META) ? true : false;
+ is_meta_class = (cro.flags & RO_META) != 0;
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10005.38316.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151024/53ba2550/attachment.bin>
More information about the llvm-commits
mailing list