Skip to content

Commit 3cc1dbb

Browse files
committed
Drop a Needless Reset of An Inherited Type
For enums with broken raw representable bounds, we should aim to make derivation tolerant of the error state rather than work around it in TypeCheckDeclPrimary. This is the last user of the MutableArrayRef form of the inheritance clauses. Those will be removed in the subsequent commit.
1 parent 0ba4e33 commit 3cc1dbb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Sema/TypeCheckDeclPrimary.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,6 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
19151915
if (!rawTy->is<ErrorType>()) {
19161916
DE.diagnose(ED->getInherited().front().getSourceRange().Start,
19171917
diag::raw_type_not_literal_convertible, rawTy);
1918-
ED->getInherited().front().setType(ErrorType::get(getASTContext()));
19191918
}
19201919
}
19211920

0 commit comments

Comments
 (0)