diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-20 04:03:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-20 04:03:41 +0000 |
commit | 256db9bf9de7320c6d8b375e1b6ba44ae96c3680 (patch) | |
tree | e32a49e7f5e331f8a2eb81ab2a7a0e9dd7d649c8 /lib/Support/CommandLine.cpp | |
parent | ce99a6e49ee5f849c33aa1a989b4cc08c71c3c9b (diff) |
Fix refacto, this code was expecting to stride past the argument prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index e35ad93b19..7de7ba64e1 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -560,6 +560,7 @@ void cl::ParseCommandLineOptions(int argc, char **argv, // rest of the name... so fall through to later processing, by // setting up the argument name flags and value fields. if (PGOpt && PGOpt->getFormattingFlag() == cl::Prefix) { + ArgName = argv[i]+1; Value = ArgName.substr(Length); assert(Opts.count(ArgName.substr(0, Length)) && Opts[ArgName.substr(0, Length)] == PGOpt); |