llvmpipe: silence warnings in lp_test_sincos.c
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 19:26:42 +0000 (13:26 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Jul 2010 23:25:54 +0000 (17:25 -0600)
src/gallium/drivers/llvmpipe/lp_test_sincos.c

index e93c1b7859df0f4f955ee3d21a1203d3e3dacb47..7ab357f162e740feab3fa071bde955faae275c7e 100644 (file)
@@ -32,6 +32,7 @@
 #include "gallivm/lp_bld.h"
 #include "gallivm/lp_bld_init.h"
 #include "gallivm/lp_bld_arit.h"
+#include "util/u_pointer.h"
 
 #include <llvm-c/Analysis.h>
 #include <llvm-c/ExecutionEngine.h>
@@ -136,8 +137,8 @@ test_sincos(unsigned verbose, FILE *fp)
    (void)pass;
 #endif
 
-   sin_func = (test_sincos_t)LLVMGetPointerToGlobal(engine, test_sin);
-   cos_func = (test_sincos_t)LLVMGetPointerToGlobal(engine, test_cos);
+   sin_func = (test_sincos_t) pointer_to_func(LLVMGetPointerToGlobal(engine, test_sin));
+   cos_func = (test_sincos_t) pointer_to_func(LLVMGetPointerToGlobal(engine, test_cos));
 
    memset(unpacked, 0, sizeof unpacked);