From cb9913cdab763ac21ea6659f93e9564db9df47e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 16 May 2013 13:12:11 +0100 Subject: [PATCH] gallivm: Support pointers in lp_build_print_value(). Trivial. --- src/gallium/auxiliary/gallivm/lp_bld_printf.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2