Remove trailing whitespace

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
Slendi 2024-03-03 03:20:09 +02:00
parent 64034e9086
commit a88806e1e7
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ generate_llvm :: proc(ctx: LLVMContextRef, mod: LLVMModuleRef, builder: LLVMBuil
append(&function_args_type, generate_llvm_type_from_node(ctx, mod, builder, arg.return_type))
}
function_return_type := generate_llvm_type_from_node(ctx, mod, builder, fn.return_type)
type = LLVMFunctionType(function_return_type, raw_data(function_args_type[:]), len(function_args_type), LLVMBool(0))
value = LLVMAddFunction(mod, strings.clone_to_cstring(string(fn.value.([dynamic]u8)[:])), type)
return

View File

@ -252,7 +252,7 @@ type_check :: proc(ast: ^Node, parent_ast: ^Node) {
if ast.value_token_kind == .Assign {
ast.return_type = nil
if !scope_variable_lookup_mutable(ast.children[0].value.([dynamic]u8)) {
append(&g_message_list,
message_create(
@ -442,7 +442,7 @@ find_function_definitions :: proc(ast_: ^Node) -> (ret: [dynamic]^FunctionType)
if i < 1 {
continue
}
}
type := ast_to_type(decl.children[1])
append(&fn.parameter_types, type)