File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1524,13 +1524,13 @@ Type ClangImporter::Implementation::importFunctionReturnType(
1524
1524
DeclContext *dc,
1525
1525
const clang::FunctionDecl *clangDecl,
1526
1526
bool allowNSUIntegerAsInt) {
1527
- // CF function results can be managed if they are audited or
1527
+ // CF function results can be managed if they are audited or
1528
1528
// the ownership convention is explicitly declared.
1529
+ assert (clangDecl && " expected to have a decl to import" );
1529
1530
bool isAuditedResult =
1530
- (clangDecl &&
1531
- (clangDecl->hasAttr <clang::CFAuditedTransferAttr>() ||
1532
- clangDecl->hasAttr <clang::CFReturnsRetainedAttr>() ||
1533
- clangDecl->hasAttr <clang::CFReturnsNotRetainedAttr>()));
1531
+ (clangDecl->hasAttr <clang::CFAuditedTransferAttr>() ||
1532
+ clangDecl->hasAttr <clang::CFReturnsRetainedAttr>() ||
1533
+ clangDecl->hasAttr <clang::CFReturnsNotRetainedAttr>());
1534
1534
1535
1535
// Check if we know more about the type from our whitelists.
1536
1536
OptionalTypeKind OptionalityOfReturn;
You can’t perform that action at this time.
0 commit comments