fixed uninit err in backend
This commit is contained in:
parent
9bc0605cfa
commit
ee8809a393
|
@ -321,7 +321,7 @@ BackendError impl_types(LLVMBackendCompileUnit* unit, LLVMGlobalScope* scope,
|
|||
gpointer key = NULL;
|
||||
gpointer val = NULL;
|
||||
|
||||
BackendError err;
|
||||
BackendError err = SUCCESS;
|
||||
|
||||
while (g_hash_table_iter_next(&iterator, &key, &val) != FALSE) {
|
||||
err = impl_type_define(unit, (Typedefine*) val, (const char*)key, scope);
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
import "std.io"
|
||||
|
||||
fun main {
|
||||
print("Hello, World!!!")
|
||||
}
|
||||
fun main(out int: ret) {
|
||||
ret = 56 as int
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue