mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update for upstream LLVM changes
* removal of StringMap's GetOrCreateValue * SmallSet::insert now returns a pair like std::set Swift SVN r23435
This commit is contained in:
@@ -722,7 +722,7 @@ findExplicitConformance(NominalTypeDecl *nominal, ProtocolDecl *protocol,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (visitedProtocols.insert(testProto)) {
|
||||
if (visitedProtocols.insert(testProto).second) {
|
||||
NominalOrConformance next = {};
|
||||
if (i < nominalConformances.size())
|
||||
next = nominalConformances[i];
|
||||
@@ -780,7 +780,7 @@ findExplicitConformance(NominalTypeDecl *nominal, ProtocolDecl *protocol,
|
||||
break;
|
||||
}
|
||||
|
||||
if (visitedProtocols.insert(inherited.first))
|
||||
if (visitedProtocols.insert(inherited.first).second)
|
||||
stack.push_back({inherited.second, currentOwner});
|
||||
}
|
||||
}
|
||||
@@ -1316,7 +1316,7 @@ static bool forAllImportedModules(Module *topLevel,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!visited.insert(next))
|
||||
if (!visited.insert(next).second)
|
||||
continue;
|
||||
|
||||
if (!fn(next))
|
||||
|
||||
Reference in New Issue
Block a user