projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix wrong assert, expor copy_node_attr function to public API
[libfirm]
/
ir
/
tr
/
trvrfy.c
diff --git
a/ir/tr/trvrfy.c
b/ir/tr/trvrfy.c
index
ae2bc4a
..
301ea9a
100644
(file)
--- a/
ir/tr/trvrfy.c
+++ b/
ir/tr/trvrfy.c
@@
-24,9
+24,7
@@
* @author Michael Beck, Goetz Lindenmaier
* @version $Id$
*/
* @author Michael Beck, Goetz Lindenmaier
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include "irgraph_t.h" /* for checking whether constant code is allocated
on proper obstack */
#include "irgraph_t.h" /* for checking whether constant code is allocated
on proper obstack */
@@
-417,14
+415,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
);
}
}
}
}