radeonsi: remove unused variable si_state_dsa::db_render_control
[mesa.git] / src / gallium / drivers / llvmpipe / lp_test_printf.c
index c483de94d4064ce39be047942e81f30112db7eed..fe4ce0fc5d7c74ecbd6d584c1bccad4250c56a80 100644 (file)
@@ -94,7 +94,7 @@ test_printf(unsigned verbose, FILE *fp,
    test_printf_t test_printf_func;
    boolean success = TRUE;
 
-   gallivm = gallivm_create();
+   gallivm = gallivm_create("test_module", LLVMGetGlobalContext());
 
    test = add_printf_test(gallivm);
 
@@ -102,9 +102,9 @@ test_printf(unsigned verbose, FILE *fp,
 
    test_printf_func = (test_printf_t) gallivm_jit_function(gallivm, test);
 
-   test_printf_func(0);
+   gallivm_free_ir(gallivm);
 
-   gallivm_free_function(gallivm, test, test_printf_func);
+   test_printf_func(0);
 
    gallivm_destroy(gallivm);