aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2009-10-06 19:55:53 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2009-10-06 19:55:53 +0000
commit35b305863ad821004f27b97546597c5ba6a65172 (patch)
treeb674dd23d7884a4a862a1d5d56d8619aa78ca30a /lib/Support/CommandLine.cpp
parent3351085d84441b78adce46c3ca8b5c4a878127c6 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r--lib/Support/CommandLine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 187024f143..626daa254d 100644
--- a/lib/Support/CommandLine.cpp
+++ b/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