mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ClangImporter] Disable assertion from 4b0255d5 for now.
We can still get into circular import cases that result in us trying to import the members of a category before we've finished with the members of the original class. I need to fix that, but for now disable the assertion to unblock some Apple-internal bots. rdar://problem/31374687
This commit is contained in:
@@ -7591,16 +7591,9 @@ ClangImporter::Implementation::loadAllMembers(Decl *D, uint64_t extra) {
|
|||||||
const NominalTypeDecl *base = ext->getExtendedType()->getAnyNominal();
|
const NominalTypeDecl *base = ext->getExtendedType()->getAnyNominal();
|
||||||
if (auto *clangBase = base->getClangDecl()) {
|
if (auto *clangBase = base->getClangDecl()) {
|
||||||
base->loadAllMembers();
|
base->loadAllMembers();
|
||||||
|
// FIXME: Assert that we don't jump over to a category /while/
|
||||||
// Sanity check: make sure we don't jump over to a category /while/
|
// loading the original class's members. Unfortunately there are some
|
||||||
// loading the original class's members. Right now we only check if this
|
// cases where this does happen today.
|
||||||
// happens on the first member.
|
|
||||||
if (auto *clangContainer = dyn_cast<clang::ObjCContainerDecl>(clangBase)){
|
|
||||||
if (!clangContainer->decls_empty()) {
|
|
||||||
assert(!base->getMembers().empty() &&
|
|
||||||
"can't load extension members before base has finished");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user