[lld] r207878 - Return the expression result directly.

Rui Ueyama ruiu at google.com
Fri May 2 15:32:01 PDT 2014


Author: ruiu
Date: Fri May  2 17:32:01 2014
New Revision: 207878

URL: http://llvm.org/viewvc/llvm-project?rev=207878&view=rev
Log:
Return the expression result directly.

Modified:
    lld/trunk/lib/Core/Resolver.cpp

Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=207878&r1=207877&r2=207878&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Fri May  2 17:32:01 2014
@@ -162,9 +162,7 @@ bool Resolver::maybeAddSectionGroupOrGnu
            "Internal Error: The group atom could only be a defined atom");
     // The atoms should be of the same content type, reject invalid group
     // resolution behaviors.
-    if (atom.contentType() != prevGroup->contentType())
-      return false;
-    return true;
+    return atom.contentType() == prevGroup->contentType();
   }
 
   for (const Reference *r : atom) {





More information about the llvm-commits mailing list