mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
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
This commit is contained in:
parent
ce99a6e49e
commit
256db9bf9d
@ -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…
x
Reference in New Issue
Block a user