Skip to content

Commit 18082b1

Browse files
committed
Sema: Don't set "validation started" bit on typealiases in the ITC
This appears to do nothing except cause a crash.
1 parent c49a1d7 commit 18082b1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/Sema/ITCDecl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ void IterativeTypeChecker::processResolveTypeDecl(
342342
if (auto typeAliasDecl = dyn_cast<TypeAliasDecl>(typeDecl)) {
343343
if (typeAliasDecl->getDeclContext()->isModuleScopeContext() &&
344344
typeAliasDecl->getGenericParams() == nullptr) {
345-
typeAliasDecl->setValidationStarted();
346-
347345
TypeResolutionOptions options = TR_TypeAliasUnderlyingType;
348346
if (typeAliasDecl->getFormalAccess() <= Accessibility::FilePrivate)
349347
options |= TR_KnownNonCascadingDependency;

validation-test/compiler_crashers/28728-d-isbeingvalidated-d-hasvalidsignature.swift renamed to validation-test/compiler_crashers_fixed/28728-d-isbeingvalidated-d-hasvalidsignature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// REQUIRES: asserts
9-
// RUN: not --crash %target-swift-frontend %s -emit-ir
9+
// RUN: not %target-swift-frontend %s -emit-ir
1010
typealias e:a
1111
struct A:a{}typealias a=A

0 commit comments

Comments
 (0)