Update naming of enum const.

This commit is contained in:
Christoffer Lerno
2025-03-10 00:15:50 +01:00
parent 25bccf4883
commit ff75f2c21f
13 changed files with 37 additions and 37 deletions

View File

@@ -4349,7 +4349,7 @@ static bool sema_generate_parameterized_name_to_scratch(SemaContext *context, Mo
}
else if (type->type_kind == TYPE_ENUM)
{
Decl *enumm = param->const_expr.enum_err_val;
Decl *enumm = param->const_expr.enum_val;
type_mangle_introspect_name_to_buffer(enumm->type->canonical);
scratch_buffer_append(mangled ? "_" : ":");
scratch_buffer_append(enumm->name);