Skip to content

Commit 2c7d01f

Browse files
committed
[NFC] Use explicit ImportedType() constructor
1 parent 5aa5bcf commit 2c7d01f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/ImportEnumInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ ImportedType importer::findOptionSetEnum(clang::QualType type,
253253
if (!typedefType || !Impl.isUnavailableInSwift(typedefType->getDecl()))
254254
// If this isn't a typedef, or it is a typedef that is available in Swift,
255255
// then this definitely isn't used for {CF,NS}_OPTIONS.
256-
return {};
256+
return ImportedType();
257257

258258
auto clangEnum = findAnonymousEnumForTypedef(Impl.SwiftContext, typedefType);
259259
if (!clangEnum)
260-
return {};
260+
return ImportedType();
261261

262262
// If this fails, it means that we need a stronger predicate for
263263
// determining the relationship between an enum and typedef.
@@ -267,7 +267,7 @@ ImportedType importer::findOptionSetEnum(clang::QualType type,
267267
if (auto *swiftEnum = Impl.importDecl(*clangEnum, Impl.CurrentVersion))
268268
return {cast<TypeDecl>(swiftEnum)->getDeclaredInterfaceType(), false};
269269

270-
return {};
270+
return ImportedType();
271271
}
272272

273273
/// Determine the prefix to be stripped from the names of the enum constants

0 commit comments

Comments
 (0)