[NFC] Remove unnecessary validation noise

Drop some callers to validateDecl and resolveDeclSignature that did not
actually need the interface type.
This commit is contained in:
Robert Widmann
2019-09-21 09:53:08 -07:00
parent 7f036f4fe4
commit aad82fd9c5
5 changed files with 1 additions and 30 deletions

View File

@@ -1079,11 +1079,6 @@ static void addImplicitConstructorsToClass(ClassDecl *decl, ASTContext &ctx) {
? DesignatedInitKind::Chaining
: DesignatedInitKind::Stub;
// We have a designated initializer. Create an override of it.
// FIXME: Validation makes sure we get a generic signature here.
if (!decl->hasInterfaceType())
ctx.getLazyResolver()->resolveDeclSignature(decl);
if (auto ctor = createDesignatedInitOverride(
decl, superclassCtor, kind, ctx)) {
decl->addMember(ctor);