Skip to content

Commit 3d14401

Browse files
committed
[NFC] Remove Needless Double-Import of Decls
Requestification addressed the bulk of the issues with the re-entrant Clang Importer. Flush a hack that depended on that old state of affairs. rdar://60111478
1 parent 8b52da8 commit 3d14401

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,13 +3157,8 @@ void ClangModuleUnit::lookupObjCMethods(
31573157
(void)owner.importDecl(objcMethod->findPropertyDecl(true),
31583158
owner.CurrentVersion);
31593159

3160-
// Import it.
3161-
// FIXME: Retrying a failed import works around recursion bugs in the Clang
3162-
// importer.
31633160
auto imported =
31643161
owner.importDecl(objcMethod, owner.CurrentVersion);
3165-
if (!imported)
3166-
imported = owner.importDecl(objcMethod, owner.CurrentVersion);
31673162
if (!imported) continue;
31683163

31693164
if (auto func = dyn_cast<AbstractFunctionDecl>(imported))

0 commit comments

Comments
 (0)