SR-11889: Using Located<T> instead of std::pair<SourceLoc, T>

This commit is contained in:
Kita, Maksim
2019-12-08 22:51:48 +03:00
parent 06014e6226
commit b7cb3b67bf
38 changed files with 209 additions and 171 deletions

View File

@@ -915,7 +915,7 @@ static void flattenImportPath(const ModuleDecl::ImportedModule &import,
outStream << '\0';
assert(import.first.size() == 1 && "can only handle top-level decl imports");
auto accessPathElem = import.first.front();
outStream << accessPathElem.first.str();
outStream << accessPathElem.item.str();
}
uint64_t getRawModTimeOrHash(const SerializationOptions::FileDependency &dep) {