Compare commits
1 Commits
5bce205238
...
c13194d626
Author | SHA1 | Date | |
---|---|---|---|
c13194d626 |
@ -11923,13 +11923,13 @@ analyze_type = fn (module: &Module, value: &Value, expected_type: &Type, analysi
|
||||
|
||||
>return_value_alloca = create_alloca(module, {
|
||||
.type = enum_type,
|
||||
.name = "retval",
|
||||
.name = "return_value",
|
||||
zero,
|
||||
});
|
||||
|
||||
>return_boolean_alloca = create_alloca(module, {
|
||||
.type = u8_type,
|
||||
.name = "retbool",
|
||||
.name = "return_bool",
|
||||
zero,
|
||||
});
|
||||
|
||||
|
@ -3097,7 +3097,7 @@ fn void analyze_type(Module* module, Value* value, Type* expected_type, TypeAnal
|
||||
|
||||
auto alloca = create_alloca(module, {
|
||||
.type = string_type,
|
||||
.name = string_literal("retval"),
|
||||
.name = string_literal("return_value"),
|
||||
});
|
||||
|
||||
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, {
|
||||
.type = enum_type,
|
||||
.name = string_literal("retval"),
|
||||
.name = string_literal("return_value"),
|
||||
});
|
||||
|
||||
auto return_boolean_alloca = create_alloca(module, {
|
||||
.type = u8_type,
|
||||
.name = string_literal("retbool"),
|
||||
.name = string_literal("return_bool"),
|
||||
});
|
||||
|
||||
auto index_alloca = create_alloca(module, {
|
||||
@ -9644,7 +9644,7 @@ void emit(Module* module)
|
||||
{
|
||||
auto alloca = create_alloca(module, {
|
||||
.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;
|
||||
} break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user