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

Craig Topper craig.topper at gmail.com
Mon May 25 00:12:17 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);
 }
----------------
Use ==

http://reviews.llvm.org/D9975

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






More information about the cfe-commits mailing list