From cb9913cdab763ac21ea6659f93e9564db9df47e8 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 16 May 2013 13:12:11 +0100 Subject: gallivm: Support pointers in lp_build_print_value(). Trivial. --- src/gallium/auxiliary/gallivm/lp_bld_printf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3