summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 393bc99e4d1..631bfe369cb 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -732,7 +732,7 @@ static bool maybeRunLibCommand(int argc, const char **argv, raw_ostream &diag) {
vec.push_back(argv[i]);
vec.push_back(nullptr);
- if (llvm::sys::ExecuteAndWait(path.c_str(), &argv[0]) != 0)
+ if (llvm::sys::ExecuteAndWait(path.c_str(), &vec[0]) != 0)
diag << "lib.exe failed\n";
return true;
}
OpenPOWER on IntegriCloud