mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 10:16:38 +00:00
Add missing return type to BuildCppFunctionDecl (#8135)
This commit is contained in:
1 parent
0b9d0c7042
commit
72abc7a466
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user