summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commit08506ee6b0c40938552d0555ce1e0cbd38f1b160 (patch)
tree128a0d976f74203f4ca1d79ff5f595c2c3f4c14c /llvm/lib/Support
parent2275a7dfef85b1d747e362de12cc9f7110991e74 (diff)
downloadbcm5719-llvm-08506ee6b0c40938552d0555ce1e0cbd38f1b160.tar.gz
bcm5719-llvm-08506ee6b0c40938552d0555ce1e0cbd38f1b160.zip
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
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/CommandLine.cpp1
1 files changed, 1 insertions, 0 deletions
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
OpenPOWER on IntegriCloud