projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert bitfield initializer tarvals before using them
[libfirm]
/
ir
/
be
/
begnuas.c
diff --git
a/ir/be/begnuas.c
b/ir/be/begnuas.c
index
2fff607
..
6be21a1
100644
(file)
--- a/
ir/be/begnuas.c
+++ b/
ir/be/begnuas.c
@@
-816,6
+816,7
@@
static void dump_bitfield(normal_or_bitfield *vals, size_t offset_bits,
if (tv == NULL) {
panic("Couldn't get numeric value for bitfield initializer");
}
if (tv == NULL) {
panic("Couldn't get numeric value for bitfield initializer");
}
+ tv = tarval_convert_to(tv, get_type_mode(type));
/* normalize offset */
vals += offset_bits >> 3;
/* normalize offset */
vals += offset_bits >> 3;