mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Fix compile error on Ubuntu 14
This commit is contained in:
@@ -1791,8 +1791,9 @@ void SwiftEditorDocument::readSyntaxInfo(EditorConsumer &Consumer) {
|
||||
Impl.ParserDiagnostics = Impl.SyntaxInfo->getDiagnostics();
|
||||
|
||||
if (Consumer.syntaxTreeEnabled()) {
|
||||
std::unordered_set<unsigned> ReusedNodeIds;
|
||||
Consumer.handleSyntaxTree(Impl.SyntaxInfo->getSourceFile().getSyntaxRoot(),
|
||||
/*ReusedNodeIds=*/{});
|
||||
ReusedNodeIds);
|
||||
}
|
||||
|
||||
SwiftSyntaxMap NewMap = SwiftSyntaxMap(Impl.SyntaxMap.Tokens.size() + 16);
|
||||
|
||||
Reference in New Issue
Block a user