mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ABI] Distinguish Swift/ObjC protocols in TargetGenericRequirement.
In a generic requirement, distinguish between Swift and Objective-C protocols using a spare bit within the relative (indirectable) reference to the protocol.
This commit is contained in:
@@ -711,7 +711,7 @@ bool swift::_checkGenericRequirements(
|
||||
return true;
|
||||
|
||||
// If we need a witness table, add it.
|
||||
if (req.getProtocol()->Flags.needsWitnessTable()) {
|
||||
if (req.getProtocol().needsWitnessTable()) {
|
||||
assert(witnessTable);
|
||||
extraArguments.push_back(witnessTable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user