[PATCH] Refactor: Simplify boolean conditional return statements in llvm/lib/MC

Craig Topper craig.topper at gmail.com
Mon May 25 00:12:01 PDT 2015


================
Comment at: lib/MC/WinCOFFObjectWriter.cpp:232
@@ -231,7 +231,3 @@
   // if its temporary, drop it
-  if (MC && MC->isTemporary())
-    return false;
-
-  // otherwise, keep it
-  return true;
+  return !(MC && MC->isTemporary());
 }
----------------
Push negate through

http://reviews.llvm.org/D9976

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list