Add missing return type to BuildCppFunctionDecl (#8135)

This commit is contained in:
Nicholas Bishop authored and GitHub committed 2026-11-13 19:36:54 +00:00
1 parent 0b9d0c7042
commit 72abc7a466
1 file changed
+2 -1
+2 -1
View File
@@ -1130,7 +1130,8 @@ static auto BuildCppFunctionDecl(
clang::DeclarationName declaration_name,
clang::ArrayRef<clang::QualType> param_types,
std::optional<clang::ArrayRef<clang::Expr*>> default_value_exprs,
clang::QualType return_type, bool export_as_constructor) {
clang::QualType return_type, bool export_as_constructor)
-> clang::FunctionDecl* {
CARBON_CHECK(!default_value_exprs.has_value() ||
default_value_exprs->size() == param_types.size());
auto clang_loc = GetCppLocation(context, loc_id);