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 4a124f1 commit 69bb2a7Copy full SHA for 69bb2a7
lib/SILGen/SILGenLazyConformance.cpp
@@ -21,6 +21,12 @@ using namespace swift;
21
using namespace swift::Lowering;
22
23
void SILGenModule::useConformance(ProtocolConformanceRef conformanceRef) {
24
+ // If the conformance is invalid, crash deterministically even in noassert
25
+ // builds.
26
+ if (conformanceRef.isInvalid()) {
27
+ llvm::report_fatal_error("Invalid conformance in type-checked AST");
28
+ }
29
+
30
// We don't need to emit dependent conformances.
31
if (conformanceRef.isAbstract())
32
return;
0 commit comments