[PATCH] Refactor: Simplify boolean conditional return statements in llvm/lib/MC/MCParser
Craig Topper
craig.topper at gmail.com
Mon May 25 00:14:31 PDT 2015
================
Comment at: lib/MC/MCParser/AsmParser.cpp:3161
@@ -3160,6 +3160,3 @@
const unsigned Application = Encoding & 0x70;
- if (Application != dwarf::DW_EH_PE_absptr &&
- Application != dwarf::DW_EH_PE_pcrel)
- return false;
-
- return true;
+ return !(Application != dwarf::DW_EH_PE_absptr &&
+ Application != dwarf::DW_EH_PE_pcrel);
----------------
Push negate through
http://reviews.llvm.org/D9977
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list