summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-18 07:59:11 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-18 08:06:43 +0100
commit72e96ce9bbdd7bc648e7a3501e556b495573c078 (patch)
tree7e96942fa9258534d09ce3154dd7c081d964a09a /ir/tv
parentd88edf66e4653e33a9afde956fccd752943d9b78 (diff)
tv: Allow tarval_get_bit() for tarvals with any data mode.
In particular this unbreaks dumping boolean bitinfo.
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/tv_t.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/tv/tv_t.h b/ir/tv/tv_t.h
index 1711bdf..9b06719 100644
--- a/ir/tv/tv_t.h
+++ b/ir/tv/tv_t.h
@@ -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(mode_is_data(mode));
assert(idx < get_mode_size_bits(mode));
#endif
return sc_get_bit_at(tv->value, idx);