mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -59,10 +59,10 @@ public:
|
||||
|
||||
void updateCode(std::unique_ptr<llvm::MemoryBuffer> Buffer) {
|
||||
BufferID = SM.addNewSourceBuffer(std::move(Buffer));
|
||||
Parser.reset(new ParserUnit(SM, SourceFileKind::Main,
|
||||
BufferID, CompInv.getLangOptions(),
|
||||
CompInv.getTypeCheckerOptions(),
|
||||
CompInv.getModuleName()));
|
||||
Parser.reset(new ParserUnit(
|
||||
SM, SourceFileKind::Main, BufferID, CompInv.getLangOptions(),
|
||||
CompInv.getTypeCheckerOptions(), CompInv.getSILOptions(),
|
||||
CompInv.getModuleName()));
|
||||
Parser->getDiagnosticEngine().addConsumer(DiagConsumer);
|
||||
Parser->parse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user