[lld] r190119 - Remove extraneous parentheses.

Rui Ueyama ruiu at google.com
Thu Sep 5 20:16:29 PDT 2013


Author: ruiu
Date: Thu Sep  5 22:16:28 2013
New Revision: 190119

URL: http://llvm.org/viewvc/llvm-project?rev=190119&view=rev
Log:
Remove extraneous parentheses.

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

Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=190119&r1=190118&r2=190119&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Thu Sep  5 22:16:28 2013
@@ -479,8 +479,8 @@ bool WinLinkDriver::parse(int argc, cons
   // with ".exe".
   if (ctx.outputPath().empty()) {
     SmallString<128> firstInputFilePath =
-        *(llvm::dyn_cast<FileNode>(&((inputGraph)[0])))->path(ctx);
-    (llvm::sys::path::replace_extension(firstInputFilePath, ".exe"));
+        *llvm::dyn_cast<FileNode>(&inputGraph[0])->path(ctx);
+    llvm::sys::path::replace_extension(firstInputFilePath, ".exe");
     ctx.setOutputPath(ctx.allocateString(firstInputFilePath.str()));
   }
 





More information about the llvm-commits mailing list