projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c1b4ae
)
implement LOCAL_VARIBALE_ENTITY in reference_expression_addr
author
Matthias Braun
<matze@braunis.de>
Fri, 16 Nov 2007 20:53:01 +0000
(20:53 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 16 Nov 2007 20:53:01 +0000
(20:53 +0000)
[r18420]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
fa734fb
..
334ac62
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-680,7
+680,13
@@
static ir_node *reference_addr(const reference_expression_t *ref)
ir_node *symconst = create_symconst(dbgi, entity);
return symconst;
}
ir_node *symconst = create_symconst(dbgi, entity);
return symconst;
}
- case DECLARATION_TYPE_LOCAL_VARIABLE_ENTITY:
+ case DECLARATION_TYPE_LOCAL_VARIABLE_ENTITY: {
+ ir_entity *entity = declaration->v.entity;
+ ir_node *frame = get_irg_frame(current_ir_graph);
+ ir_node *sel = new_d_simpleSel(dbgi, new_NoMem(), frame, entity);
+
+ return sel;
+ }
case DECLARATION_TYPE_COMPOUND_MEMBER:
case DECLARATION_TYPE_LABEL_BLOCK:
panic("not implemented reference type");
case DECLARATION_TYPE_COMPOUND_MEMBER:
case DECLARATION_TYPE_LABEL_BLOCK:
panic("not implemented reference type");