File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1684,6 +1684,8 @@ class ApplyClassifier {
16841684 const bool hasAnyConformances =
16851685 llvm::any_of (substitutions.getConformances (),
16861686 [](const ProtocolConformanceRef conformance) {
1687+ if (conformance.isInvalid ())
1688+ return false ;
16871689 auto *requirement = conformance.getProtocol ();
16881690 return !requirement->getInvertibleProtocolKind ();
16891691 });
Original file line number Diff line number Diff line change 11// {"signature":"swift::ProtocolConformanceRef::getProtocol() const"}
2- // RUN: not --crash %target-swift-frontend -typecheck %s
2+ // RUN: not %target-swift-frontend -typecheck %s
33 func a< each b {
44 enum c {
55 case struct var d : e struct e {
You can’t perform that action at this time.
0 commit comments