Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 28e7c3e

Browse files
rudkxadrian-prantl
authored andcommitted
Remove use of getImplicitlyUnwrappedOptionalDecl.
As of swiftlang/swift#14299, we should effectively no longer see this decl since we no longer generate IUO types. A follow-on PR actually removes this API completely: swiftlang/swift#14364
1 parent 25317bc commit 28e7c3e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

source/Symbol/SwiftASTContext.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,16 +1000,6 @@ SwiftEnumDescriptor::CreateDescriptor(swift::ASTContext *ast,
10001000
assert(swift_can_type.getPointer());
10011001
SwiftASTContext *swift_ast_ctx = SwiftASTContext::GetSwiftASTContext(ast);
10021002
assert(swift_ast_ctx);
1003-
if (enum_decl == ast->getImplicitlyUnwrappedOptionalDecl()) {
1004-
swift::EnumDecl *optional_decl = ast->getOptionalDecl();
1005-
swift::CanType bound_optional_can_type =
1006-
swift::BoundGenericType::get(
1007-
optional_decl,
1008-
swift::Type(),
1009-
swift::cast<swift::BoundGenericType>(swift_can_type)
1010-
->getGenericArgs())->getCanonicalType();
1011-
return CreateDescriptor(ast, bound_optional_can_type, optional_decl);
1012-
}
10131003
swift::irgen::IRGenModule &irgen_module = swift_ast_ctx->GetIRGenModule();
10141004
const swift::irgen::EnumImplStrategy &enum_impl_strategy =
10151005
swift::irgen::getEnumImplStrategy(irgen_module, swift_can_type);

0 commit comments

Comments
 (0)