Skip to content

Commit fa5c4f2

Browse files
committed
[cxx-interop] Remove NDEBUG check when importing OptionSetTypes
1 parent 80db054 commit fa5c4f2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/ClangImporter/ImportEnumInfo.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ ImportedType importer::findOptionSetEnum(clang::QualType type,
259259
if (!clangEnum)
260260
return ImportedType();
261261

262-
// Only ASSERT() on assertions-enabled builds. This preserves existing
263-
// behavior and de-risks existing builds, but should be removed after 6.2.
264-
#ifndef NDEBUG
265262
// Assert that the typedef has the same underlying integer representation as
266263
// the enum we think it assigns a type name to.
267264
//
@@ -275,7 +272,6 @@ ImportedType importer::findOptionSetEnum(clang::QualType type,
275272
ASSERT(clangEnum.value()->getIntegerType()->getCanonicalTypeInternal() ==
276273
typedefType->getCanonicalTypeInternal());
277274
}
278-
#endif // !NDEBUG
279275

280276
if (auto *swiftEnum = Impl.importDecl(*clangEnum, Impl.CurrentVersion))
281277
return {cast<TypeDecl>(swiftEnum)->getDeclaredInterfaceType(), false};

0 commit comments

Comments
 (0)