Update SourceKit for getInterfaceType() changes

This commit is contained in:
Robert Widmann
2019-09-23 16:50:19 -07:00
parent 792e1db448
commit 1233cdf596
8 changed files with 13 additions and 31 deletions

View File

@@ -333,8 +333,6 @@ deriveBodyCodingKey_init_stringValue(AbstractFunctionDecl *initDecl, void *) {
static bool canSynthesizeCodingKey(DerivedConformance &derived) {
auto enumDecl = cast<EnumDecl>(derived.Nominal);
// Validate the enum and its raw type.
// FIXME(InterfaceTypeRequest): Remove this.
(void)enumDecl->getInterfaceType();
// If the enum has a raw type (optional), it must be String or Int.
Type rawType = enumDecl->getRawType();