fixed uninit err in backend

This commit is contained in:
Sven Vogel 2024-07-19 22:22:35 +02:00
parent 9bc0605cfa
commit ee8809a393
2 changed files with 4 additions and 6 deletions

View File

@ -321,7 +321,7 @@ BackendError impl_types(LLVMBackendCompileUnit* unit, LLVMGlobalScope* scope,
gpointer key = NULL; gpointer key = NULL;
gpointer val = NULL; gpointer val = NULL;
BackendError err; BackendError err = SUCCESS;
while (g_hash_table_iter_next(&iterator, &key, &val) != FALSE) { while (g_hash_table_iter_next(&iterator, &key, &val) != FALSE) {
err = impl_type_define(unit, (Typedefine*) val, (const char*)key, scope); err = impl_type_define(unit, (Typedefine*) val, (const char*)key, scope);

View File

@ -1,6 +1,4 @@
import "std.io" fun main(out int: ret) {
ret = 56 as int
fun main { }
print("Hello, World!!!")
}