Skip to content

Commit 3306ce6

Browse files
authored
Merge pull request #75651 from slavapestov/fix-rdar132236212
RequirementMachine: Temporarily replace a couple of ASSERT with DEBUG_ASSERT
2 parents fdfeb0e + db8be79 commit 3306ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/RequirementMachine/Symbol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct Symbol::Storage final
9292
DEBUG_ASSERT(kind == Symbol::Kind::Superclass ||
9393
kind == Symbol::Kind::ConcreteType);
9494
ASSERT(!type->hasUnboundGenericType());
95-
ASSERT(!type->hasTypeVariable());
95+
DEBUG_ASSERT(!type->hasTypeVariable());
9696
ASSERT(type->hasTypeParameter() != substitutions.empty());
9797

9898
Kind = kind;
@@ -105,7 +105,7 @@ struct Symbol::Storage final
105105
}
106106

107107
Storage(CanType type, ArrayRef<Term> substitutions, const ProtocolDecl *proto) {
108-
ASSERT(!type->hasTypeVariable());
108+
DEBUG_ASSERT(!type->hasTypeVariable());
109109
ASSERT(type->hasTypeParameter() != substitutions.empty());
110110

111111
Kind = Symbol::Kind::ConcreteConformance;

0 commit comments

Comments
 (0)