From 08506ee6b0c40938552d0555ce1e0cbd38f1b160 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 6 Oct 2009 19:55:53 +0000 Subject: 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. llvm-svn: 83405 --- llvm/lib/Support/CommandLine.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 187024f143d..626daa254dd 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -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 -- cgit v1.2.1