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 83ef1cd + fedf24c commit e6f680dCopy full SHA for e6f680d
lib/ClangImporter/ImportType.cpp
@@ -3429,7 +3429,9 @@ ImportedType ClangImporter::Implementation::importAccessorParamsAndReturnType(
3429
// FIXME: Duplicated from importMethodParamsAndReturnType.
3430
DeclContext *origDC = importDeclContextOf(property,
3431
property->getDeclContext());
3432
- assert(origDC);
+ if (!origDC)
3433
+ return {Type(), false};
3434
+
3435
auto fieldType = isGetter ? clangDecl->getReturnType()
3436
: clangDecl->getParamDecl(0)->getType();
3437
0 commit comments