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 b718663 commit 8c91ccaCopy full SHA for 8c91cca
lib/AST/ASTContext.cpp
@@ -1797,6 +1797,12 @@ void ASTContext::registerGenericSignatureBuilder(
1797
1798
GenericSignatureBuilder *ASTContext::getOrCreateGenericSignatureBuilder(
1799
CanGenericSignature sig) {
1800
+ // We should only create GenericSignatureBuilders if the requirement machine
1801
+ // mode is ::Disabled or ::Verify.
1802
+ assert(LangOpts.EnableRequirementMachine != RequirementMachineMode::Enabled &&
1803
+ "Shouldn't create GenericSignatureBuilder when RequirementMachine "
1804
+ "is enabled");
1805
+
1806
// Check whether we already have a generic signature builder for this
1807
// signature and module.
1808
auto arena = getArena(sig);
0 commit comments