File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ class StoredDeclsList {
237
237
238
238
// FIXME: Move the assert before the single decl case when we fix the
239
239
// duplication coming from the ASTReader reading builtin types.
240
- assert (!llvm::is_contained (getLookupResult (), D) && " Already exists!" );
240
+
241
+ // SWIFT: FIXME^2: This assertion causes problems in Swift's ClangImporter.
242
+ // SWIFT: We should probably set its ASTContext to Objective-C++ mode to avoid it.
243
+ // SWIFT: assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");
244
+
241
245
// Determine if this declaration is actually a redeclaration.
242
246
for (DeclListNode *N = getAsList (); /* return in loop*/ ;
243
247
N = N->Rest .dyn_cast <DeclListNode *>()) {
You can’t perform that action at this time.
0 commit comments