OSDN Git Service

[bugpoint] Don't ignore arg in -compile-commad="tool arg"
authorAdam Nemet <anemet@apple.com>
Sat, 8 Mar 2014 07:48:19 +0000 (07:48 +0000)
committerAdam Nemet <anemet@apple.com>
Sat, 8 Mar 2014 07:48:19 +0000 (07:48 +0000)
Args is an output parameter of the function lexCommand but the reference
operator was missed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203343 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ToolRunner.cpp

index 254d997..22199f8 100644 (file)
@@ -406,7 +406,7 @@ int CustomExecutor::ExecuteProgram(const std::string &Bitcode,
 // code borrowed from:
 // http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html
 static void lexCommand(std::string &Message, const std::string &CommandLine,
-                       std::string &CmdPath, std::vector<std::string> Args) {
+                       std::string &CmdPath, std::vector<std::string> &Args) {
 
   std::string Command = "";
   std::string delimiters = " ";