We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad43d0 commit edfe2cbCopy full SHA for edfe2cb
lib/Driver/Driver.cpp
@@ -1157,7 +1157,8 @@ parseArgsUntil(const llvm::opt::OptTable& Opts,
1157
}
1158
1159
unsigned Prev = Index;
1160
- Arg *A = Opts.ParseOneArg(*Args, Index, FlagsToInclude, FlagsToExclude);
+ std::unique_ptr<Arg> A = Opts.ParseOneArg(*Args, Index, FlagsToInclude,
1161
+ FlagsToExclude);
1162
assert(Index > Prev && "Parser failed to consume argument.");
1163
1164
// Check for missing argument error.
@@ -1169,7 +1170,7 @@ parseArgsUntil(const llvm::opt::OptTable& Opts,
1169
1170
break;
1171
1172
- Args->append(A);
1173
+ Args->append(A.release());
1174
1175
if (CheckUntil && A->getOption().matches(UntilOption)) {
1176
if (Index < End)
0 commit comments