summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-21 21:07:12 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-21 21:07:12 +0000
commit9e10b9a96f1743ac73c7b4629b0ea2ad4d7fa491 (patch)
tree0ebb92d38c204a70184a80305329e53680182e4e /llvm
parentb920fe79ba515d06ae9379bd080ef4851bd5669f (diff)
downloadbcm5719-llvm-9e10b9a96f1743ac73c7b4629b0ea2ad4d7fa491.tar.gz
bcm5719-llvm-9e10b9a96f1743ac73c7b4629b0ea2ad4d7fa491.zip
Fix off-by-one error in processing of libraries named on command line.
llvm-svn: 9351
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/gccld/Linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gccld/Linker.cpp b/llvm/tools/gccld/Linker.cpp
index 881581fcadc..d9c029aec9d 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()) {
OpenPOWER on IntegriCloud