summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_test_sincos.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-29 13:26:42 -0600
committerBrian Paul <brianp@vmware.com>2010-07-29 17:25:54 -0600
commitd1f38baa01b8881232abfe79721296c0cf8c19a5 (patch)
tree530a6adb1edd1eaa7c003d26cbf7beef42f843fa /src/gallium/drivers/llvmpipe/lp_test_sincos.c
parent7a73390f9126fd270d9891cd9d2bf38ef56d9b80 (diff)
llvmpipe: silence warnings in lp_test_sincos.c
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_test_sincos.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_test_sincos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_sincos.c b/src/gallium/drivers/llvmpipe/lp_test_sincos.c
index e93c1b7859..7ab357f162 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_sincos.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_sincos.c
@@ -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);