Address llvm::(Mutable)ArrayRef ctor deprecations

See:
- https://github.com/llvm/llvm-project/pull/146113
- https://github.com/llvm/llvm-project/pull/146011
This commit is contained in:
Anthony Latsis
2025-07-20 01:02:59 +01:00
parent f40d3b4c2e
commit 2920ea84d1
17 changed files with 78 additions and 71 deletions

View File

@@ -886,7 +886,7 @@ void SwiftLangSupport::editorOpenHeaderInterface(EditorConsumer &Consumer,
CompilerInvocation Invocation;
std::string Error;
ArrayRef<const char *> SwiftArgs = UsingSwiftArgs ? Args : std::nullopt;
auto SwiftArgs = UsingSwiftArgs ? Args : ArrayRef<const char *>();
if (getASTManager()->initCompilerInvocationNoInputs(
Invocation, SwiftArgs, FrontendOptions::ActionType::Typecheck,
CI.getDiags(), Error)) {