mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user