Skip to content

Commit 15f534d

Browse files
committed
AST: Adjust llvm::TinyPtrVector -> llvm::ArrayRef conversion after API change
See llvm/llvm-project@8b3e345.
1 parent 08e02af commit 15f534d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,8 +2499,7 @@ void OverriddenDeclsRequest::cacheResult(
24992499

25002500
// Record the overrides in the context.
25012501
auto &ctx = decl->getASTContext();
2502-
auto overriddenCopy =
2503-
ctx.AllocateCopy(value.operator ArrayRef<ValueDecl *>());
2502+
auto overriddenCopy = ctx.AllocateCopy(ArrayRef<ValueDecl *>(value));
25042503
(void)ctx.getImpl().Overrides.insert({decl, overriddenCopy});
25052504
}
25062505

0 commit comments

Comments
 (0)