projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a54e80
)
Handle IR generation for access to global variables of compound type.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 17 Nov 2007 16:35:53 +0000
(16:35 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 17 Nov 2007 16:35:53 +0000
(16:35 +0000)
[r18447]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
47a0010
..
f98e0a7
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-651,12
+651,7
@@
static ir_node *reference_expression_to_firm(const reference_expression_t *ref)
case DECLARATION_TYPE_GLOBAL_VARIABLE: {
ir_entity *entity = declaration->v.entity;
ir_node *symconst = create_symconst(dbgi, entity);
-
- if(type->type == TYPE_ARRAY) {
- return symconst;
- } else {
- return load_from_expression_addr(type, symconst, dbgi);
- }
+ return deref_address(type, symconst, dbgi);
}
case DECLARATION_TYPE_LOCAL_VARIABLE_ENTITY: {
ir_entity *entity = declaration->v.entity;