projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72b141
)
handle unknown_entity
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 13 Nov 2005 15:18:48 +0000
(15:18 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 13 Nov 2005 15:18:48 +0000
(15:18 +0000)
[r6903]
ir/opt/funccall.c
patch
|
blob
|
history
diff --git
a/ir/opt/funccall.c
b/ir/opt/funccall.c
index
1002450
..
8f7af6f
100644
(file)
--- a/
ir/opt/funccall.c
+++ b/
ir/opt/funccall.c
@@
-66,8
+66,12
@@
static void rem_mem_from_const_fkt_calls(ir_node *node, void *env)
return;
for (i = 0; i < n_callees; ++i) {
ent = get_Call_callee(call, i);
+ if (ent == unknown_entity) {
+ /* we don't know which entity is called here */
+ return;
+ }
if ((get_entity_additional_properties(ent) & mtp_property_const) == 0)
-
return;
+ return;
}
++ctx->n_calls_removed_Sel;
}