Compare commits

..

1 Commits

Author SHA1 Message Date
c13194d626 Compile the compiler
All checks were successful
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 5m27s
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 5m30s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 5m28s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 18m30s
2025-06-20 09:15:43 -06:00
2 changed files with 6 additions and 6 deletions

View File

@ -11923,13 +11923,13 @@ analyze_type = fn (module: &Module, value: &Value, expected_type: &Type, analysi
>return_value_alloca = create_alloca(module, { >return_value_alloca = create_alloca(module, {
.type = enum_type, .type = enum_type,
.name = "retval", .name = "return_value",
zero, zero,
}); });
>return_boolean_alloca = create_alloca(module, { >return_boolean_alloca = create_alloca(module, {
.type = u8_type, .type = u8_type,
.name = "retbool", .name = "return_bool",
zero, zero,
}); });

View File

@ -3097,7 +3097,7 @@ fn void analyze_type(Module* module, Value* value, Type* expected_type, TypeAnal
auto alloca = create_alloca(module, { auto alloca = create_alloca(module, {
.type = string_type, .type = string_type,
.name = string_literal("retval"), .name = string_literal("return_value"),
}); });
auto* return_block = LLVMAppendBasicBlockInContext(module->llvm.context, llvm_function, "return_block"); auto* return_block = LLVMAppendBasicBlockInContext(module->llvm.context, llvm_function, "return_block");
@ -4310,12 +4310,12 @@ fn void analyze_type(Module* module, Value* value, Type* expected_type, TypeAnal
auto return_value_alloca = create_alloca(module, { auto return_value_alloca = create_alloca(module, {
.type = enum_type, .type = enum_type,
.name = string_literal("retval"), .name = string_literal("return_value"),
}); });
auto return_boolean_alloca = create_alloca(module, { auto return_boolean_alloca = create_alloca(module, {
.type = u8_type, .type = u8_type,
.name = string_literal("retbool"), .name = string_literal("return_bool"),
}); });
auto index_alloca = create_alloca(module, { auto index_alloca = create_alloca(module, {
@ -9644,7 +9644,7 @@ void emit(Module* module)
{ {
auto alloca = create_alloca(module, { auto alloca = create_alloca(module, {
.type = function_type->abi.return_abi.semantic_type, .type = function_type->abi.return_abi.semantic_type,
.name = string_literal("retval"), .name = string_literal("return_value"),
}); });
global->variable.storage->function.llvm.return_alloca = alloca; global->variable.storage->function.llvm.return_alloca = alloca;
} break; } break;