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