mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix ReferencedNameTracker in preparation for batch mode.
This commit is contained in:
@@ -1472,6 +1472,11 @@ void SourceFile::setTypeRefinementContext(TypeRefinementContext *Root) {
|
||||
TRC = Root;
|
||||
}
|
||||
|
||||
void SourceFile::createReferencedNameTracker() {
|
||||
assert(!ReferencedNames && "This file already has a name tracker.");
|
||||
ReferencedNames.emplace(ReferencedNameTracker());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Miscellaneous
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user