mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
More explicit StringRef -> std::string conversions
On the older compiler/stdlib used by our Ubuntu 16.04 bots, the
construction
std::pair<std::string, X>(StringRef, X)
fails unless you call `.str()`. Newer compilers/stdlib treat this as an
explicit construction, which is what is now needed on master-next, so it
only fails on Ubuntu 16.04.
rdar://60514063
This commit is contained in:
@@ -178,7 +178,7 @@ std::vector<const Job *> ModuleDepGraph::jobsContaining(
|
||||
void ModuleDepGraph::registerJob(const Job *job) {
|
||||
// No need to create any nodes; that will happen when the swiftdeps file is
|
||||
// read. Just record the correspondence.
|
||||
jobsBySwiftDeps.insert(std::make_pair(getSwiftDeps(job), job));
|
||||
jobsBySwiftDeps.insert(std::make_pair(getSwiftDeps(job).str(), job));
|
||||
}
|
||||
|
||||
std::vector<const Job *> ModuleDepGraph::getAllJobs() const {
|
||||
|
||||
Reference in New Issue
Block a user