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

Richard legalize at xmission.com
Mon May 25 08:31:19 PDT 2015


================
Comment at: lib/Linker/LinkModules.cpp:1644
@@ -1645,5 +1643,3 @@
     return false;
-  if (ETypes != That.ETypes)
-    return false;
-  return true;
+  return !(ETypes != That.ETypes);
 }
----------------
craig.topper wrote:
> Use ==
FIxed.

http://reviews.llvm.org/D9975

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






More information about the cfe-commits mailing list