Commit 72e96ce9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

tv: Allow tarval_get_bit() for tarvals with any data mode.

In particular this unbreaks dumping boolean bitinfo.
parent d88edf66
......@@ -144,8 +144,7 @@ static inline unsigned tarval_get_bit(ir_tarval const *const tv,
#ifndef NDEBUG
ir_mode *mode = get_tarval_mode(tv);
assert(get_mode_sort(mode) == irms_reference
|| get_mode_sort(mode) == irms_int_number);
assert(idx < get_mode_size_bits(mode));
return sc_get_bit_at(tv->value, idx);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment