projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87106ca
)
- do not kick inner functions from the frame type
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Jan 2009 20:55:54 +0000
(20:55 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Jan 2009 20:55:54 +0000
(20:55 +0000)
[r25271]
ir/opt/opt_frame.c
patch
|
blob
|
history
diff --git
a/ir/opt/opt_frame.c
b/ir/opt/opt_frame.c
index
b985540
..
dd41fd7
100644
(file)
--- a/
ir/opt/opt_frame.c
+++ b/
ir/opt/opt_frame.c
@@
-87,7
+87,8
@@
void opt_frame_irg(ir_graph *irg) {
list = NULL;
for (i = n - 1; i >= 0; --i) {
ent = get_class_member(frame_tp, i);
- if (get_entity_link(ent) == NULL) {
+ /* beware of inner functions: those are NOT unused */
+ if (get_entity_link(ent) == NULL && !is_method_entity(ent)) {
set_entity_link(ent, list);
list = ent;
}