[lld] r205736 - No else after return.

Rui Ueyama ruiu at google.com
Mon Apr 7 14:01:11 PDT 2014


Author: ruiu
Date: Mon Apr  7 16:01:11 2014
New Revision: 205736

URL: http://llvm.org/viewvc/llvm-project?rev=205736&view=rev
Log:
No else after return.

Modified:
    lld/trunk/lib/Driver/GnuLdInputGraph.cpp

Modified: lld/trunk/lib/Driver/GnuLdInputGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdInputGraph.cpp?rev=205736&r1=205735&r2=205736&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdInputGraph.cpp (original)
+++ lld/trunk/lib/Driver/GnuLdInputGraph.cpp Mon Apr  7 16:01:11 2014
@@ -38,11 +38,10 @@ error_code ELFFileNode::parse(const Link
       f.release();
       // Add all members to _files vector
       return archive->parseAllMembers(_files);
-    } else {
-      // if --whole-archive is around non-archive, just use it as normal.
-      _files.push_back(std::move(f));
-      return error_code::success();
     }
+    // if --whole-archive is around non-archive, just use it as normal.
+    _files.push_back(std::move(f));
+    return error_code::success();
   }
   return ctx.registry().parseFile(_buffer, _files);
 }





More information about the llvm-commits mailing list