Skip to content

Commit 0a989ae

Browse files
committed
Fix missing return statements
1 parent a6caff8 commit 0a989ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp2rust/converter/translation_rule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ class Callback : public clang::ast_matchers::MatchFinder::MatchCallback {
654654
}
655655

656656
assert(0 && "Rule resolution failed");
657+
return nullptr;
657658
}
658659

659660
clang::NamedDecl *lookupMemberAccess(clang::FunctionTemplateDecl *decl,
@@ -707,6 +708,7 @@ class Callback : public clang::ast_matchers::MatchFinder::MatchCallback {
707708
}
708709
}
709710
assert(0 && "Rule resolution failed");
711+
return nullptr;
710712
}
711713

712714
clang::QualType lookupType(clang::FunctionTemplateDecl *decl) {

0 commit comments

Comments
 (0)