[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:
Doug Gregor
2018-07-22 22:48:57 -07:00
parent 03c3baab6e
commit c7a02a26a1
6 changed files with 85 additions and 24 deletions

View File

@@ -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);
}