mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Ignore Sendable conformances in PrintAsClang
PrintAsClang previously tried to print Sendable conformances, which tripped an assertion and failed. Skip them instead. Fixes rdar://95241184.
This commit is contained in:
@@ -433,8 +433,10 @@ public:
|
||||
bool allRequirementsSatisfied = true;
|
||||
|
||||
for (auto proto : PD->getInheritedProtocols()) {
|
||||
assert(proto->isObjC());
|
||||
allRequirementsSatisfied &= require(proto);
|
||||
if (printer.shouldInclude(proto)) {
|
||||
assert(proto->isObjC());
|
||||
allRequirementsSatisfied &= require(proto);
|
||||
}
|
||||
}
|
||||
|
||||
if (!allRequirementsSatisfied)
|
||||
|
||||
Reference in New Issue
Block a user