projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a223a21
)
fix dereferncing of pointer+compound types
author
Matthias Braun
<matze@braunis.de>
Fri, 30 Nov 2007 13:04:28 +0000
(13:04 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 30 Nov 2007 13:04:28 +0000
(13:04 +0000)
[r18577]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
0065ea2
..
3639f10
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-1088,7
+1088,9
@@
static ir_node *unary_expression_to_firm(const unary_expression_t *expression)
}
case UNEXPR_DEREFERENCE: {
ir_type *irtype = get_ir_type(type);
}
case UNEXPR_DEREFERENCE: {
ir_type *irtype = get_ir_type(type);
- return deref_address(irtype, value_node, dbgi);
+ assert(is_Pointer_type(irtype));
+ ir_type *points_to = get_pointer_points_to_type(irtype);
+ return deref_address(points_to, value_node, dbgi);
}
case UNEXPR_POSTFIX_INCREMENT:
case UNEXPR_POSTFIX_DECREMENT:
}
case UNEXPR_POSTFIX_INCREMENT:
case UNEXPR_POSTFIX_DECREMENT: