Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion clang/include/clang/AST/DeclContextInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,13 @@ class StoredDeclsList {

// FIXME: Move the assert before the single decl case when we fix the
// duplication coming from the ASTReader reading builtin types.
assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");
assert((!llvm::is_contained(getLookupResult(), D) ||
// Swift mod: Work around an issue where the SEL type is also contained twice
// in the AST constructed by the ASTImporter and SwiftDWARFImporter. See
// rdar://82037935
(D->getIdentifier() && D->getIdentifier()->isStr("SEL")))
// End Swift mod
&& "Already exists!");
// Determine if this declaration is actually a redeclaration.
for (DeclListNode *N = getAsList(); /*return in loop*/;
N = N->Rest.dyn_cast<DeclListNode *>()) {
Expand Down