Skip to content

Commit fc5d047

Browse files
committed
Sema: Fix a couple of nits
1 parent 4b93736 commit fc5d047

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/Sema/ITCDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void IterativeTypeChecker::processResolveTypeDecl(
341341
if (typeAliasDecl->getDeclContext()->isModuleScopeContext() &&
342342
typeAliasDecl->getGenericParams() == nullptr) {
343343
TypeResolutionOptions options =
344-
TypeResolutionFlags::TypeAliasUnderlyingType;
344+
TypeResolutionFlags::TypeAliasUnderlyingType;
345345
if (!typeAliasDecl->getDeclContext()->isCascadingContextForLookup(
346346
/*functionsAreNonCascading*/true)) {
347347
options |= TypeResolutionFlags::KnownNonCascadingDependency;

lib/Sema/TypeCheckDecl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,9 +3815,6 @@ void TypeChecker::resolveIsObjC(ValueDecl *VD) {
38153815
auto dc = VD->getDeclContext();
38163816
if (dc->getAsClassOrClassExtensionContext()) {
38173817
// Members of classes can be @objc.
3818-
3819-
// FIXME: We
3820-
validateDeclForNameLookup(VD);
38213818
}
38223819
else if (isa<ClassDecl>(VD)) {
38233820
// Classes can be @objc.

0 commit comments

Comments
 (0)