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
/
tr
/
trvrfy.c
diff --git
a/ir/tr/trvrfy.c
b/ir/tr/trvrfy.c
index
ae2bc4a
..
d3024a3
100644
(file)
--- a/
ir/tr/trvrfy.c
+++ b/
ir/tr/trvrfy.c
@@
-417,14
+417,14
@@
int check_entity(ir_entity *ent) {
/*
* check types and entities
*/
/*
* check types and entities
*/
-static void check_tore(type_or_ent
*
tore, void *env) {
+static void check_tore(type_or_ent tore, void *env) {
int *res = env;
int *res = env;
- assert(tore);
- if (is_type(tore)) {
- *res = check_type(
(ir_type *)tore
);
+ assert(tore
.ent
);
+ if (is_type(tore
.typ
)) {
+ *res = check_type(
tore.typ
);
} else {
} else {
- assert(is_entity(tore));
- *res = check_entity(
(ir_entity *)tore
);
+ assert(is_entity(tore
.ent
));
+ *res = check_entity(
tore.ent
);
}
}
}
}