projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a470a4b
)
check peculiarity / irg
author
Götz Lindenmaier
<goetz@ipd.info.uni-karlsruhe.de>
Thu, 22 Jan 2004 15:13:40 +0000
(15:13 +0000)
committer
Götz Lindenmaier
<goetz@ipd.info.uni-karlsruhe.de>
Thu, 22 Jan 2004 15:13:40 +0000
(15:13 +0000)
[r2343]
ir/tr/trvrfy.c
patch
|
blob
|
history
diff --git
a/ir/tr/trvrfy.c
b/ir/tr/trvrfy.c
index
89b6a78
..
30d3cea
100644
(file)
--- a/
ir/tr/trvrfy.c
+++ b/
ir/tr/trvrfy.c
@@
-147,6
+147,15
@@
static int check_entity(entity *ent) {
assert(0 && "Contants placed on wrong IRG");
return error_const_on_wrong_irg;
}
+
+ if ((get_entity_peculiarity(ent) == peculiarity_existent) &&
+ (get_entity_visibility(ent) != visibility_external_allocated) &&
+ (is_method_type(get_entity_type(ent))) &&
+ (!get_entity_irg(ent) || !(is_ir_graph(get_entity_irg(ent))))) {
+ assert(0 && "Method ents with pec_exist must have an irg");
+ return error_existent_entity_without_irg;
+ }
+
return 0;
}