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 | ecbb126e34331262454106c9255b8a46d123851a (patch) | |
tree | 0b29daeaa91137af1184ee2b8b721fd20f60736a /llvm/lib/Support | |
parent | 6058b51f8c2c774b17a5794793df8c9689aad354 (diff) | |
download | bcm5719-llvm-ecbb126e34331262454106c9255b8a46d123851a.tar.gz bcm5719-llvm-ecbb126e34331262454106c9255b8a46d123851a.zip |
Fix refacto, this code was expecting to stride past the argument prefix.
llvm-svn: 82360
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index e35ad93b195..7de7ba64e17 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/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); |