gallivm: Support pointers in lp_build_print_value(). 29/6629/1
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 16 May 2013 12:12:11 +0000 (13:12 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 16 May 2013 14:14:10 +0000 (15:14 +0100)
Trivial.

src/gallium/auxiliary/gallivm/lp_bld_printf.c

index 7a6bbd9..1324da2 100644 (file)
@@ -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);