Skip to content

Commit 13e3a63

Browse files
committed
remove EnumElementDecl workaround in getTypeOfReference
1 parent ed1db71 commit 13e3a63

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/TypeOfReference.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,12 +977,6 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
977977
return { openedType, openedType, openedType, openedType, Type() };
978978
}
979979

980-
// FIXME: implement this properly
981-
if (auto enumElem = dyn_cast<EnumElementDecl>(value)) {
982-
Type interfaceType = enumElem->getInterfaceType();
983-
return {interfaceType, interfaceType, interfaceType, interfaceType, Type()};
984-
}
985-
986980
// Only remaining case: unqualified reference to a property.
987981
auto *varDecl = cast<VarDecl>(value);
988982

0 commit comments

Comments
 (0)