mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use the new InputFile Constructor
This commit is contained in:
@@ -1172,7 +1172,7 @@ getNotableRegions(StringRef SourceText, unsigned NameOffset, StringRef Name,
|
||||
CompilerInvocation Invocation{};
|
||||
|
||||
Invocation.getFrontendOptions().InputsAndOutputs.addInput(
|
||||
InputFile("<extract>", true, InputBuffer.get()));
|
||||
InputFile("<extract>", true, InputBuffer.get(), file_types::TY_Swift));
|
||||
Invocation.getFrontendOptions().ModuleName = "extract";
|
||||
Invocation.getLangOptions().DisablePoundIfEvaluation = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user