We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 653f07c + f5bd65a commit 490cf64Copy full SHA for 490cf64
lib/ClangImporter/ImportType.cpp
@@ -3428,7 +3428,9 @@ ImportedType ClangImporter::Implementation::importAccessorParamsAndReturnType(
3428
// FIXME: Duplicated from importMethodParamsAndReturnType.
3429
DeclContext *origDC = importDeclContextOf(property,
3430
property->getDeclContext());
3431
- assert(origDC);
+ if (!origDC)
3432
+ return {Type(), false};
3433
+
3434
auto fieldType = isGetter ? clangDecl->getReturnType()
3435
: clangDecl->getParamDecl(0)->getType();
3436
0 commit comments