diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-19 02:14:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-19 02:14:58 +0000 |
commit | 7b2ccffa594e9bdecddfa1f76a8ca2ae2c377084 (patch) | |
tree | 93c5b1c052fadbdcc1dffbfc377643fcea94e64c /lib/Support | |
parent | a81fc68f8e318aca3d04a3026f19f3f271458972 (diff) | |
download | external_llvm-7b2ccffa594e9bdecddfa1f76a8ca2ae2c377084.zip external_llvm-7b2ccffa594e9bdecddfa1f76a8ca2ae2c377084.tar.gz external_llvm-7b2ccffa594e9bdecddfa1f76a8ca2ae2c377084.tar.bz2 |
Fix PR #47
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/ToolRunner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index cd385d6..4d0964e 100644 --- a/lib/Support/ToolRunner.cpp +++ b/lib/Support/ToolRunner.cpp @@ -50,7 +50,7 @@ int LLI::ExecuteProgram(const std::string &Bytecode, std::cout << "<lli>" << std::flush; DEBUG(std::cerr << "\nAbout to run:\n\t"; - for (unsigned i=0, e = LLIArgs.size(); i != e; ++i) + for (unsigned i=0, e = LLIArgs.size()-1; i != e; ++i) std::cerr << " " << LLIArgs[i]; std::cerr << "\n"; ); @@ -174,7 +174,7 @@ int JIT::ExecuteProgram(const std::string &Bytecode, std::cout << "<jit>" << std::flush; DEBUG(std::cerr << "\nAbout to run:\n\t"; - for (unsigned i=0, e = JITArgs.size(); i != e; ++i) + for (unsigned i=0, e = JITArgs.size()-1; i != e; ++i) std::cerr << " " << JITArgs[i]; std::cerr << "\n"; ); @@ -309,7 +309,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, // Now that we have a binary, run it! std::cout << "<program>" << std::flush; DEBUG(std::cerr << "\nAbout to run:\n\t"; - for (unsigned i=0, e = ProgramArgs.size(); i != e; ++i) + for (unsigned i=0, e = ProgramArgs.size()-1; i != e; ++i) std::cerr << " " << ProgramArgs[i]; std::cerr << "\n"; ); |