[llvm-commits] [llvm] r83405 - /llvm/trunk/lib/Support/CommandLine.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Oct 6 12:55:54 PDT 2009


Author: geoffray
Date: Tue Oct  6 14:55:53 2009
New Revision: 83405

URL: http://llvm.org/viewvc/llvm-project?rev=83405&view=rev
Log:
Bugfix for the CommaSeparated option. The original code was adding the whole
string at the end of the list, instead of the last comma-separated string.


Modified:
    llvm/trunk/lib/Support/CommandLine.cpp

Modified: llvm/trunk/lib/Support/CommandLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CommandLine.cpp?rev=83405&r1=83404&r2=83405&view=diff

==============================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp (original)
+++ llvm/trunk/lib/Support/CommandLine.cpp Tue Oct  6 14:55:53 2009
@@ -643,6 +643,7 @@
         // Check for another comma.
         Pos = Val.find(',');
       }
+      Value = Val;
     }
 
     // If this is a named positional argument, just remember that it is the





More information about the llvm-commits mailing list