From 9e10b9a96f1743ac73c7b4629b0ea2ad4d7fa491 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 21 Oct 2003 21:07:12 +0000 Subject: [PATCH] Fix off-by-one error in processing of libraries named on command line. llvm-svn: 9351 --- llvm/tools/gccld/Linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/gccld/Linker.cpp b/llvm/tools/gccld/Linker.cpp index 881581f..d9c029a 100644 --- a/llvm/tools/gccld/Linker.cpp +++ b/llvm/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()) { -- 2.7.4