Skip to content

Commit b27c156

Browse files
committed
RequirementMachine: Add assertion to RewriteSystem::isInMinimizationDomain()
1 parent f480eea commit b27c156

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ void RewriteSystem::simplifyRightHandSidesAndSubstitutions() {
607607
bool RewriteSystem::isInMinimizationDomain(
608608
ArrayRef<const ProtocolDecl *> protos) const {
609609
assert(protos.size() <= 1);
610+
assert(Protos.empty() || !protos.empty());
610611

611612
if (protos.empty() && Protos.empty())
612613
return true;

0 commit comments

Comments
 (0)