From cae1af4339e4327f4cce106c534c101f09276382 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 24 Jun 2019 14:49:17 -0700 Subject: [PATCH] nir/search: Log Boolean constants instead of asserting Reviewed-by: Connor Abbott --- src/compiler/nir/nir_search.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c index 2179ca0a311..1f68f78afa3 100644 --- a/src/compiler/nir/nir_search.c +++ b/src/compiler/nir/nir_search.c @@ -561,6 +561,9 @@ MAYBE_UNUSED static void dump_value(const nir_search_value *val) case nir_type_uint: printf("0x%"PRIx64, sconst->data.u); break; + case nir_type_bool: + printf("%s", sconst->data.u != 0 ? "True" : "False"); + break; default: unreachable("bad const type"); } -- 2.30.2