Remove extraneous parentheses.

llvm-svn: 190119
This commit is contained in:
Rui Ueyama 2013-09-06 03:16:28 +00:00
parent 5a722e92af
commit 822cb2e44b
1 changed files with 2 additions and 2 deletions

View File

@ -479,8 +479,8 @@ bool WinLinkDriver::parse(int argc, const char *argv[], PECOFFLinkingContext &ct
// 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()));
}