gallivm: Support pointers in lp_build_print_value().
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 7a6bbd960bee1331aa0e6c05455ecb0bab8a4179..1324da26a71a5ebc024c8701053dad3be76bcfcb 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);