Skip to content

Commit fa6350d

Browse files
Merge pull request #9237 from felipepiovezan/felipe/disable_assertion
Disable assertion
2 parents c16f367 + 1a09ba3 commit fa6350d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/include/clang/AST/DeclContextInternals.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ class StoredDeclsList {
244244

245245
// FIXME: Move the assert before the single decl case when we fix the
246246
// duplication coming from the ASTReader reading builtin types.
247-
assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");
247+
248+
// SWIFT: FIXME^2: This assertion causes problems in Swift's ClangImporter.
249+
// SWIFT: We should probably set its ASTContext to Objective-C++ mode to avoid it.
250+
// SWIFT: assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");
251+
248252
// Determine if this declaration is actually a redeclaration.
249253
for (DeclListNode *N = getAsList(); /*return in loop*/;
250254
N = N->Rest.dyn_cast<DeclListNode *>()) {

0 commit comments

Comments
 (0)