diff options
-rw-r--r-- | lib/Linker/LinkArchives.cpp | 2 | ||||
-rw-r--r-- | tools/gccld/Linker.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Linker/LinkArchives.cpp b/lib/Linker/LinkArchives.cpp index 881581fcad..d9c029aec9 100644 --- a/lib/Linker/LinkArchives.cpp +++ b/lib/Linker/LinkArchives.cpp @@ -427,7 +427,7 @@ bool LinkLibraries(const char *progname, // String in which to receive error messages. std::string ErrorMessage; - for (unsigned i = 1; i < Libraries.size(); ++i) { + for (unsigned i = 0; i < Libraries.size(); ++i) { // Determine where this library lives. std::string Pathname = FindLib(Libraries[i], LibPaths); if (Pathname.empty()) { diff --git a/tools/gccld/Linker.cpp b/tools/gccld/Linker.cpp index 881581fcad..d9c029aec9 100644 --- a/tools/gccld/Linker.cpp +++ b/tools/gccld/Linker.cpp @@ -427,7 +427,7 @@ bool LinkLibraries(const char *progname, // String in which to receive error messages. std::string ErrorMessage; - for (unsigned i = 1; i < Libraries.size(); ++i) { + for (unsigned i = 0; i < Libraries.size(); ++i) { // Determine where this library lives. std::string Pathname = FindLib(Libraries[i], LibPaths); if (Pathname.empty()) { |