Skip to content

Commit c258f99

Browse files
committed
Sema: Nuke NominalTypeDecl::markInvalidGenericSignature()
This would just set the NominalTypeDecl's declared type to ErrorType, which caused problems elsewhere. Instead, generalize the logic used for AbstractFunctionDecl. This correctly wires up the GenericTypeParamDecl's archetypes even if the signature didn't validate, fixing crashes if the generic parameters of the type are referenced.
1 parent dfbb580 commit c258f99

File tree

713 files changed

+728
-735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

713 files changed

+728
-735
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,9 +2871,6 @@ class NominalTypeDecl : public TypeDecl, public DeclContext,
28712871
return GenericSig;
28722872
}
28732873

2874-
/// Mark generic type signature as invalid.
2875-
void markInvalidGenericSignature();
2876-
28772874
/// getDeclaredType - Retrieve the type declared by this entity.
28782875
Type getDeclaredType() const { return DeclaredTy; }
28792876

lib/AST/Decl.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,13 +1922,6 @@ void NominalTypeDecl::setGenericSignature(GenericSignature *sig) {
19221922
GenericSig = sig;
19231923
}
19241924

1925-
void NominalTypeDecl::markInvalidGenericSignature() {
1926-
ASTContext &ctx = getASTContext();
1927-
overwriteType(ErrorType::get(ctx));
1928-
if (!getDeclaredType())
1929-
setDeclaredType(ErrorType::get(ctx));
1930-
}
1931-
19321925
void NominalTypeDecl::computeType() {
19331926
assert(!hasType() && "Nominal type declaration already has a type");
19341927

lib/Sema/TypeCheckDecl.cpp

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -795,22 +795,24 @@ void TypeChecker::revertGenericParamList(GenericParamList *genericParams) {
795795
}
796796
}
797797

798-
static void markInvalidGenericSignature(AbstractFunctionDecl *AFD,
798+
static void markInvalidGenericSignature(ValueDecl *VD,
799799
TypeChecker &TC) {
800-
ArchetypeBuilder builder = TC.createArchetypeBuilder(AFD->getParentModule());
801-
auto genericParams = AFD->getGenericParams();
802-
803-
// If there is a parent context, add the generic parameters and requirements
804-
// from that context.
805-
auto dc = AFD->getDeclContext();
806-
807-
if (dc->isTypeContext())
808-
if (auto sig = dc->getGenericSignatureOfContext())
809-
builder.addGenericSignature(sig, true);
800+
GenericParamList *genericParams;
801+
if (auto *AFD = dyn_cast<AbstractFunctionDecl>(VD))
802+
genericParams = AFD->getGenericParams();
803+
else
804+
genericParams = cast<NominalTypeDecl>(VD)->getGenericParams();
810805

811806
// If there aren't any generic parameters at this level, we're done.
812-
if (!genericParams)
807+
if (genericParams == nullptr)
813808
return;
809+
810+
DeclContext *DC = VD->getDeclContext();
811+
ArchetypeBuilder builder = TC.createArchetypeBuilder(DC->getParentModule());
812+
813+
if (DC->isTypeContext())
814+
if (auto sig = DC->getGenericSignatureOfContext())
815+
builder.addGenericSignature(sig, true);
814816

815817
// Visit each of the generic parameters.
816818
for (auto param : *genericParams)
@@ -5824,7 +5826,7 @@ void TypeChecker::validateDecl(ValueDecl *D, bool resolveTypeParams) {
58245826

58255827
// Validate the generic type parameters.
58265828
if (validateGenericTypeSignature(nominal)) {
5827-
nominal->markInvalidGenericSignature();
5829+
markInvalidGenericSignature(nominal, *this);
58285830
return;
58295831
}
58305832

test/Generics/associated_type_typo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ func typoAssoc4<T : P2 where T.Assocp2.assoc : P3>(_: T) { }
4949
// <rdar://problem/19620340>
5050

5151
func typoFunc1<T : P1>(x: TypoType) { // expected-error{{use of undeclared type 'TypoType'}}
52-
let _: T.Assoc -> () = { let _ = $0 }
52+
let _: T.Assoc -> () = { let _ = $0 } // expected-error{{'Assoc' is not a member type of 'T'}}
5353
}
5454

5555
func typoFunc2<T : P1>(x: TypoType, y: T) { // expected-error{{use of undeclared type 'TypoType'}}
56-
let _: T.Assoc -> () = { let _ = $0 }
56+
let _: T.Assoc -> () = { let _ = $0 } // expected-error{{'Assoc' is not a member type of 'T'}}
5757
}
5858

5959
func typoFunc3<T : P1>(x: TypoType, y: T.Assoc -> ()) { // expected-error{{use of undeclared type 'TypoType'}}

test/Sema/accessibility.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ struct DefaultGeneric<T> {}
309309
struct DefaultGenericPrivate<T: PrivateProto> {} // expected-error {{generic struct must be declared private because its generic parameter uses a private type}}
310310
struct DefaultGenericPrivate2<T: PrivateClass> {} // expected-error {{generic struct must be declared private because its generic parameter uses a private type}}
311311
struct DefaultGenericPrivateReq<T where T == PrivateClass> {} // expected-error {{same-type requirement makes generic parameter 'T' non-generic}}
312+
// expected-error@-1 {{generic struct must be declared private because its generic requirement uses a private type}}
312313
struct DefaultGenericPrivateReq2<T where T: PrivateProto> {} // expected-error {{generic struct must be declared private because its generic requirement uses a private type}}
313314

314315
public struct PublicGenericInternal<T: InternalProto> {} // expected-error {{generic struct cannot be declared public because its generic parameter uses an internal type}}

test/decl/protocol/req/recursion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct S<A: P where A.T == S<A>> {}
1414

1515
// rdar://problem/19840527
1616
class X<T where T == X> { // expected-error{{same-type requirement makes generic parameter 'T' non-generic}}
17-
var type: T { return self.dynamicType } // expected-error{{use of undeclared type 'T'}}
17+
var type: T { return self.dynamicType } // expected-error{{cannot convert return expression of type 'X<T>.Type' to return type 'T'}}
1818
}
1919

2020
protocol Y {
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
55
// Test case found by fuzzing
66

7-
enum S{init(){enum S<T where S:T>:T
7+
enum S{init(){enum S<T where S:T>:T
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
55
// Test case found by fuzzing
66

7-
enum S<T where S:a>:T.j
7+
enum S<T where S:a>:T.j

validation-test/compiler_crashers/23060-swift-typechecker-validatedecl.swift renamed to validation-test/compiler_crashers_fixed/23060-swift-typechecker-validatedecl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/24645-swift-diagnosticengine-flushactivediagnostic.swift renamed to validation-test/compiler_crashers_fixed/24645-swift-diagnosticengine-flushactivediagnostic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/24960-swift-typedecl-getdeclaredinterfacetype.swift renamed to validation-test/compiler_crashers_fixed/24960-swift-typedecl-getdeclaredinterfacetype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25009-swift-typechecker-resolvetypeincontext.swift renamed to validation-test/compiler_crashers_fixed/25009-swift-typechecker-resolvetypeincontext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25011-swift-constraints-constraintsystem-opengeneric.swift renamed to validation-test/compiler_crashers_fixed/25011-swift-constraints-constraintsystem-opengeneric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25128-swift-type-transform.swift renamed to validation-test/compiler_crashers_fixed/25128-swift-type-transform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25152-swift-typechecker-resolvetypeincontext.swift renamed to validation-test/compiler_crashers_fixed/25152-swift-typechecker-resolvetypeincontext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25154-swift-constraints-constraintsystem-opengeneric.swift renamed to validation-test/compiler_crashers_fixed/25154-swift-constraints-constraintsystem-opengeneric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25163-swift-constraints-constraintsystem-opengeneric.swift renamed to validation-test/compiler_crashers_fixed/25163-swift-constraints-constraintsystem-opengeneric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25327-swift-metatypetype-get.swift renamed to validation-test/compiler_crashers_fixed/25327-swift-metatypetype-get.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25349-swift-typechecker-validatedecl.swift renamed to validation-test/compiler_crashers_fixed/25349-swift-typechecker-validatedecl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25358-llvm-foldingset-swift-classtype-nodeequals.swift renamed to validation-test/compiler_crashers_fixed/25358-llvm-foldingset-swift-classtype-nodeequals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25384-swift-constraints-constraintsystem-opengeneric.swift renamed to validation-test/compiler_crashers_fixed/25384-swift-constraints-constraintsystem-opengeneric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25387-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/25387-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25409-llvm-foldingset-swift-tupletype-nodeequals.swift renamed to validation-test/compiler_crashers_fixed/25409-llvm-foldingset-swift-tupletype-nodeequals.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25507-void.swift renamed to validation-test/compiler_crashers_fixed/25507-void.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25522-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/25522-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25674-swift-typechecker-validatedecl.swift renamed to validation-test/compiler_crashers_fixed/25674-swift-typechecker-validatedecl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25708-swift-typechecker-resolvetypeincontext.swift renamed to validation-test/compiler_crashers_fixed/25708-swift-typechecker-resolvetypeincontext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)

validation-test/compiler_crashers/25897-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/25897-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22

33
// Distributed under the terms of the MIT license
44
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/25988-swift-typebase-getcanonicaltype.swift renamed to validation-test/compiler_crashers_fixed/25988-swift-typebase-getcanonicaltype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/25992-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/25992-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/25999-swift-nominaltype-get.swift renamed to validation-test/compiler_crashers_fixed/25999-swift-nominaltype-get.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26002-swift-nominaltype-get.swift renamed to validation-test/compiler_crashers_fixed/26002-swift-nominaltype-get.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26057-swift-valuedecl-settype.swift renamed to validation-test/compiler_crashers_fixed/26057-swift-valuedecl-settype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26059-std-function-func-mapsignaturetype.swift renamed to validation-test/compiler_crashers_fixed/26059-std-function-func-mapsignaturetype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26084-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/26084-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26086-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/26086-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26090-swift-constraints-constraintsystem-opengeneric.swift renamed to validation-test/compiler_crashers_fixed/26090-swift-constraints-constraintsystem-opengeneric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26094-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/26094-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26098-swift-funcdecl-setdeserializedsignature.swift renamed to validation-test/compiler_crashers_fixed/26098-swift-funcdecl-setdeserializedsignature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26099-swift-constraints-constraintsystem-getconstraintlocator.swift renamed to validation-test/compiler_crashers_fixed/26099-swift-constraints-constraintsystem-getconstraintlocator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26102-swift-typechecker-overapproximateosversionsatlocation.swift renamed to validation-test/compiler_crashers_fixed/26102-swift-typechecker-overapproximateosversionsatlocation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26103-swift-constraints-constraintsystem-solve.swift renamed to validation-test/compiler_crashers_fixed/26103-swift-constraints-constraintsystem-solve.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26106-swift-typebase-getsuperclass.swift renamed to validation-test/compiler_crashers_fixed/26106-swift-typebase-getsuperclass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26108-swift-genericparamlist-deriveallarchetypes.swift renamed to validation-test/compiler_crashers_fixed/26108-swift-genericparamlist-deriveallarchetypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26111-swift-modulefile-maybereadpattern.swift renamed to validation-test/compiler_crashers_fixed/26111-swift-modulefile-maybereadpattern.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26119-swift-typeloc-iserror.swift renamed to validation-test/compiler_crashers_fixed/26119-swift-typeloc-iserror.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26124-swift-genericparamlist-deriveallarchetypes.swift renamed to validation-test/compiler_crashers_fixed/26124-swift-genericparamlist-deriveallarchetypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26125-swift-modulefile-lookupvalue.swift renamed to validation-test/compiler_crashers_fixed/26125-swift-modulefile-lookupvalue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26131-swift-printingdiagnosticconsumer-handlediagnostic.swift renamed to validation-test/compiler_crashers_fixed/26131-swift-printingdiagnosticconsumer-handlediagnostic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26138-swift-typebase-getcanonicaltype.swift renamed to validation-test/compiler_crashers_fixed/26138-swift-typebase-getcanonicaltype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

validation-test/compiler_crashers/26140-swift-modulefile-getdecl.swift renamed to validation-test/compiler_crashers_fixed/26140-swift-modulefile-getdecl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// RUN: not %target-swift-frontend %s -parse
22
// Distributed under the terms of the MIT license
33
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
44
// Test case found by fuzzing

0 commit comments

Comments
 (0)