projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da1c2bd
)
- BugFix: function types have not size 0, so condition must be changed
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:35:31 +0000
(11:35 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:35:31 +0000
(11:35 +0000)
[r21580]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
09f48fd
..
6ef6879
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-2152,9
+2152,8
@@
static ir_node *adjust_for_pointer_arithmetic(dbg_info *dbgi,
unsigned elem_size = get_type_size_const(points_to);
/* gcc extension: allow arithmetic with void * and function * */
- if (elem_size == 0 &&
- (is_type_atomic(points_to, ATOMIC_TYPE_VOID) ||
- is_type_function(points_to))) {
+ if ((elem_size == 0 && is_type_atomic(points_to, ATOMIC_TYPE_VOID)) ||
+ is_type_function(points_to)) {
elem_size = 1;
}