We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3743d commit a816489Copy full SHA for a816489
lib/AST/RequirementMachine/RequirementLowering.cpp
@@ -810,15 +810,9 @@ void swift::rewriting::applyInverses(
810
return false;
811
812
// Only consider requirements involving an invertible protocol.
813
- llvm::Optional<InvertibleProtocolKind> proto;
814
- if (auto kp = req.getProtocolDecl()->getKnownProtocolKind())
815
- if (auto ip = getInvertibleProtocolKind(*kp))
816
- proto = *ip;
817
-
818
- if (!proto) {
819
- assert(false && "suspicious!");
+ auto proto = req.getProtocolDecl()->getInvertibleProtocolKind();
+ if (!proto)
820
821
- }
822
823
// See if this subject is in-scope.
824
auto subject = req.getFirstType()->getCanonicalType();
0 commit comments