File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1957,12 +1957,8 @@ namespace {
1957
1957
1958
1958
// / Determine whether the given Objective-C class, or any of its
1959
1959
// / superclasses, either has or inherits a swift_bridge attribute.
1960
- static bool hasOrInheritsSwiftBridgeAttr (
1961
- const clang::ObjCInterfaceDecl *objcClass,
1962
- bool DisableSwiftBridgeAttr) {
1963
- // If we have disabled the attribute just return that there is none.
1964
- if (DisableSwiftBridgeAttr)
1965
- return false ;
1960
+ static bool
1961
+ hasOrInheritsSwiftBridgeAttr (const clang::ObjCInterfaceDecl *objcClass) {
1966
1962
do {
1967
1963
// Look at the definition, if there is one.
1968
1964
if (auto def = objcClass->getDefinition ())
@@ -2486,8 +2482,7 @@ auto ClangImporter::Implementation::importFullName(
2486
2482
if (D->getDeclContext ()->getRedeclContext ()->isFileContext () &&
2487
2483
(isa<clang::TypeDecl>(D) ||
2488
2484
(isa<clang::ObjCInterfaceDecl>(D) &&
2489
- !hasOrInheritsSwiftBridgeAttr (cast<clang::ObjCInterfaceDecl>(D),
2490
- DisableSwiftBridgeAttr)) ||
2485
+ !hasOrInheritsSwiftBridgeAttr (cast<clang::ObjCInterfaceDecl>(D))) ||
2491
2486
isa<clang::ObjCProtocolDecl>(D))) {
2492
2487
// Find the original declaration, from which we can determine
2493
2488
// the owning module.
You can’t perform that action at this time.
0 commit comments