Merge remote-tracking branch 'upstream/master' into master-next

This commit is contained in:
Arnold Schwaighofer
2020-01-08 06:41:34 -08:00
141 changed files with 2498 additions and 979 deletions

View File

@@ -329,14 +329,14 @@ int main(int argc, char **argv) {
llvm::outs() << "Importing " << path << "... ";
#ifdef SWIFT_SUPPORTS_SUBMODULES
std::vector<std::pair<swift::Identifier, swift::SourceLoc> > AccessPath;
std::vector<swift::Located<swift::Identifier>> AccessPath;
for (auto i = llvm::sys::path::begin(path);
i != llvm::sys::path::end(path); ++i)
if (!llvm::sys::path::is_separator((*i)[0]))
AccessPath.push_back({ CI.getASTContext().getIdentifier(*i),
swift::SourceLoc() });
#else
std::vector<std::pair<swift::Identifier, swift::SourceLoc> > AccessPath;
std::vector<swift::Located<swift::Identifier>> AccessPath;
AccessPath.push_back({ CI.getASTContext().getIdentifier(path),
swift::SourceLoc() });
#endif