nir/search: Log Boolean constants instead of asserting
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user