Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
72e96ce9
Commit
72e96ce9
authored
Jan 18, 2015
by
Christoph Mallon
Browse files
tv: Allow tarval_get_bit() for tarvals with any data mode.
In particular this unbreaks dumping boolean bitinfo.
parent
d88edf66
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/tv_t.h
View file @
72e96ce9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment