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 5cdc9a6 commit 3b6ee7cCopy full SHA for 3b6ee7c
lib/AST/RequirementMachine/Symbol.cpp
@@ -366,6 +366,8 @@ Symbol Symbol::forLayout(LayoutConstraint layout,
366
/// Creates a superclass symbol, representing a superclass constraint.
367
Symbol Symbol::forSuperclass(CanType type, ArrayRef<Term> substitutions,
368
RewriteContext &ctx) {
369
+ ASSERT(type.getClassOrBoundGenericClass() != nullptr);
370
+
371
llvm::FoldingSetNodeID id;
372
id.AddInteger(unsigned(Kind::Superclass));
373
id.AddPointer(type.getPointer());
0 commit comments