ast-test should also finalize functions directly

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-05-03 14:04:35 +02:00
parent 5c385a3c78
commit bd84ebcf74

View file

@ -120,6 +120,8 @@ int main()
if (!ast_function_codegen(functions_data[i], ir)) { if (!ast_function_codegen(functions_data[i], ir)) {
assert(!"failed to generate function"); assert(!"failed to generate function");
} }
if (!ir_function_finalize(functions_data[i]->ir_func))
assert(!"finalize on function failed...");
} }
/* dump */ /* dump */