Compare commits
1 Commits
c13194d626
...
5bce205238
Author | SHA1 | Date | |
---|---|---|---|
5bce205238 |
@ -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 = "return_value",
|
.name = "retval",
|
||||||
zero,
|
zero,
|
||||||
});
|
});
|
||||||
|
|
||||||
>return_boolean_alloca = create_alloca(module, {
|
>return_boolean_alloca = create_alloca(module, {
|
||||||
.type = u8_type,
|
.type = u8_type,
|
||||||
.name = "return_bool",
|
.name = "retbool",
|
||||||
zero,
|
zero,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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("return_value"),
|
.name = string_literal("retval"),
|
||||||
});
|
});
|
||||||
|
|
||||||
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("return_value"),
|
.name = string_literal("retval"),
|
||||||
});
|
});
|
||||||
|
|
||||||
auto return_boolean_alloca = create_alloca(module, {
|
auto return_boolean_alloca = create_alloca(module, {
|
||||||
.type = u8_type,
|
.type = u8_type,
|
||||||
.name = string_literal("return_bool"),
|
.name = string_literal("retbool"),
|
||||||
});
|
});
|
||||||
|
|
||||||
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("return_value"),
|
.name = string_literal("retval"),
|
||||||
});
|
});
|
||||||
global->variable.storage->function.llvm.return_alloca = alloca;
|
global->variable.storage->function.llvm.return_alloca = alloca;
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user