[llvm] r251215 - Simplify boolean expressions in tools/llvm-objdump.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 16:19:11 PDT 2015
Author: rafael
Date: Sat Oct 24 18:19:10 2015
New Revision: 251215
URL: http://llvm.org/viewvc/llvm-project?rev=251215&view=rev
Log:
Simplify boolean expressions in tools/llvm-objdump.
Patch by Richard.
Modified:
llvm/trunk/tools/llvm-objdump/MachODump.cpp
Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=251215&r1=251214&r2=251215&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Sat Oct 24 18:19:10 2015
@@ -4351,7 +4351,7 @@ static bool print_class_ro64_t(uint64_t
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 @@ static bool print_class_ro32_t(uint32_t
<< 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;
}
More information about the llvm-commits
mailing list