Skip to content

Commit edfe2cb

Browse files
committed
[rebranch] OptTable::ParseOneArg now returns a std::unique_ptr
1 parent 4ad43d0 commit edfe2cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Driver/Driver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,8 @@ parseArgsUntil(const llvm::opt::OptTable& Opts,
11571157
}
11581158

11591159
unsigned Prev = Index;
1160-
Arg *A = Opts.ParseOneArg(*Args, Index, FlagsToInclude, FlagsToExclude);
1160+
std::unique_ptr<Arg> A = Opts.ParseOneArg(*Args, Index, FlagsToInclude,
1161+
FlagsToExclude);
11611162
assert(Index > Prev && "Parser failed to consume argument.");
11621163

11631164
// Check for missing argument error.
@@ -1169,7 +1170,7 @@ parseArgsUntil(const llvm::opt::OptTable& Opts,
11691170
break;
11701171
}
11711172

1172-
Args->append(A);
1173+
Args->append(A.release());
11731174

11741175
if (CheckUntil && A->getOption().matches(UntilOption)) {
11751176
if (Index < End)

0 commit comments

Comments
 (0)