projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0069dc4
)
skip_typref().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 7 Aug 2008 14:26:07 +0000
(14:26 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 7 Aug 2008 14:26:07 +0000
(14:26 +0000)
[r21048]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
02b13cd
..
4fd65a2
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-219,8
+219,6
@@
static unsigned get_array_type_size(array_type_t *type)
static unsigned get_type_size_const(type_t *type)
{
- type = skip_typeref(type);
-
switch(type->kind) {
case TYPE_ERROR:
panic("error type occurred");
@@
-2098,7
+2096,7
@@
static ir_node *adjust_for_pointer_arithmetic(dbg_info *dbgi,
ir_node *value, type_t *type)
{
pointer_type_t *const pointer_type = &type->pointer;
- type_t *const points_to =
pointer_type->points_to
;
+ type_t *const points_to =
skip_typeref(pointer_type->points_to)
;
unsigned elem_size = get_type_size_const(points_to);
/* gcc extension */