[llvm] r203343 - [bugpoint] Don't ignore arg in -compile-commad="tool arg"

Adam Nemet anemet at apple.com
Fri Mar 7 23:48:20 PST 2014


Author: anemet
Date: Sat Mar  8 01:48:19 2014
New Revision: 203343

URL: http://llvm.org/viewvc/llvm-project?rev=203343&view=rev
Log:
[bugpoint] Don't ignore arg in -compile-commad="tool arg"

Args is an output parameter of the function lexCommand but the reference
operator was missed.

Modified:
    llvm/trunk/tools/bugpoint/ToolRunner.cpp

Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=203343&r1=203342&r2=203343&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Sat Mar  8 01:48:19 2014
@@ -406,7 +406,7 @@ int CustomExecutor::ExecuteProgram(const
 // 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 = " ";





More information about the llvm-commits mailing list