Bugfix for the CommaSeparated option. The original code was adding the whole
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 6 Oct 2009 19:55:53 +0000 (19:55 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 6 Oct 2009 19:55:53 +0000 (19:55 +0000)
string at the end of the list, instead of the last comma-separated string.

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

lib/Support/CommandLine.cpp

index 187024f143d9f58388894455ae72a225e2ce4703..626daa254dd7b9ea1b13a820adb4bf156f50d401 100644 (file)
@@ -643,6 +643,7 @@ void cl::ParseCommandLineOptions(int argc, char **argv,
         // Check for another comma.
         Pos = Val.find(',');
       }
+      Value = Val;
     }
 
     // If this is a named positional argument, just remember that it is the