mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Use an accessor to get the PlatformKind from an AvailableAttr.
This commit is contained in:
@@ -456,8 +456,8 @@ class InheritedProtocolCollector {
|
||||
// attributes for the same platform; formally they'd need to be merged.
|
||||
bool alreadyHasMoreSpecificAttrForThisPlatform =
|
||||
llvm::any_of(*cache, [nextAttr](const AvailableAttr *existingAttr) {
|
||||
return existingAttr->Platform == nextAttr->Platform;
|
||||
});
|
||||
return existingAttr->getPlatform() == nextAttr->getPlatform();
|
||||
});
|
||||
if (alreadyHasMoreSpecificAttrForThisPlatform)
|
||||
continue;
|
||||
cache->push_back(nextAttr);
|
||||
|
||||
Reference in New Issue
Block a user