Merge pull request #61445 from hborla/pack-shape-requirements

[RequirementMachine] Implement inference and minimization of same-shape requirements.
This commit is contained in:
Holly Borla
2022-10-07 14:49:14 -07:00
committed by GitHub
54 changed files with 440 additions and 150 deletions

View File

@@ -57,8 +57,8 @@ public:
auto requirements = protocol->getRequirementSignature().getRequirements();
for (const auto &reqt : requirements) {
switch (reqt.getKind()) {
case RequirementKind::SameCount:
llvm_unreachable("Same-count requirement not supported here");
case RequirementKind::SameShape:
llvm_unreachable("Same-shape requirement not supported here");
// These requirements don't show up in the witness table.
case RequirementKind::Superclass: