mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Fix off-by-one error in processing of libraries named on command line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -427,7 +427,7 @@ bool LinkLibraries(const char *progname,
|
|||||||
// String in which to receive error messages.
|
// String in which to receive error messages.
|
||||||
std::string ErrorMessage;
|
std::string ErrorMessage;
|
||||||
|
|
||||||
for (unsigned i = 1; i < Libraries.size(); ++i) {
|
for (unsigned i = 0; i < Libraries.size(); ++i) {
|
||||||
// Determine where this library lives.
|
// Determine where this library lives.
|
||||||
std::string Pathname = FindLib(Libraries[i], LibPaths);
|
std::string Pathname = FindLib(Libraries[i], LibPaths);
|
||||||
if (Pathname.empty()) {
|
if (Pathname.empty()) {
|
||||||
|
@ -427,7 +427,7 @@ bool LinkLibraries(const char *progname,
|
|||||||
// String in which to receive error messages.
|
// String in which to receive error messages.
|
||||||
std::string ErrorMessage;
|
std::string ErrorMessage;
|
||||||
|
|
||||||
for (unsigned i = 1; i < Libraries.size(); ++i) {
|
for (unsigned i = 0; i < Libraries.size(); ++i) {
|
||||||
// Determine where this library lives.
|
// Determine where this library lives.
|
||||||
std::string Pathname = FindLib(Libraries[i], LibPaths);
|
std::string Pathname = FindLib(Libraries[i], LibPaths);
|
||||||
if (Pathname.empty()) {
|
if (Pathname.empty()) {
|
||||||
|
Reference in New Issue
Block a user