We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c03ace + aeebef9 commit e3f572dCopy full SHA for e3f572d
lib/ClangImporter/SwiftLookupTable.cpp
@@ -213,8 +213,8 @@ translateDeclToContext(clang::NamedDecl *decl) {
213
return std::make_pair(SwiftLookupTable::ContextKind::Tag,
214
typedefDecl->getName());
215
if (auto enumDecl = dyn_cast<clang::EnumDecl>(tag)) {
216
- if (auto typedefType = dyn_cast<clang::TypedefType>(
217
- enumDecl->getIntegerType().getTypePtr())) {
+ if (auto typedefType =
+ dyn_cast<clang::TypedefType>(getUnderlyingType(enumDecl))) {
218
if (importer::isUnavailableInSwift(typedefType->getDecl(), nullptr,
219
true)) {
220
0 commit comments