mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement predates-concurrency imports for Sendable diagnostic downgrades
This commit is contained in:
@@ -548,6 +548,11 @@ UnboundImport::UnboundImport(ImportDecl *ID)
|
||||
spiGroups.append(attrSPIs.begin(), attrSPIs.end());
|
||||
}
|
||||
import.spiGroups = ID->getASTContext().AllocateCopy(spiGroups);
|
||||
|
||||
if (auto attr = ID->getAttrs().getAttribute<PredatesConcurrencyAttr>()) {
|
||||
import.options |= ImportFlags::PredatesConcurrency;
|
||||
import.predatesConcurrencyRange = attr->getRangeWithAt();
|
||||
}
|
||||
}
|
||||
|
||||
bool UnboundImport::checkNotTautological(const SourceFile &SF) {
|
||||
|
||||
Reference in New Issue
Block a user