summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-05-16 13:12:11 +0100
committerJosé Fonseca <[email protected]>2013-05-16 15:14:10 +0100
commitcb9913cdab763ac21ea6659f93e9564db9df47e8 (patch)
tree2f7f374a3f8f2015764a92701b71869ccb2d3330 /src/gallium
parent435aea6f3284da42ef9da1d928f59971ecf6a3d2 (diff)
gallivm: Support pointers in lp_build_print_value().
Trivial.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_printf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index 7a6bbd960be..1324da26a71 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
@@ -111,6 +111,8 @@ lp_build_print_value(struct gallivm_state *gallivm,
} else {
type_fmt[2] = 'i';
}
+ } else if (type_kind == LLVMPointerTypeKind) {
+ type_fmt[2] = 'p';
} else {
/* Unsupported type */
assert(0);