mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
Fix refacto, this code was expecting to stride past the argument prefix.
llvm-svn: 82360
This commit is contained in:
parent
4e33798de0
commit
16b2c02cd3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user