diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp index 8aca2a97440a..645e82720c9b 100644 --- a/lld/lib/Driver/WinLinkDriver.cpp +++ b/lld/lib/Driver/WinLinkDriver.cpp @@ -242,7 +242,7 @@ llvm::ErrorOr PECOFFFileNode::path(const LinkingContext &) const { if (_path.endswith(".lib")) return _ctx.searchLibraryFile(_path); if (llvm::sys::path::extension(_path).empty()) - return (_ctx.allocateString(_path.str() + ".obj")); + return _ctx.allocateString(_path.str() + ".obj"); return _path; }