projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
380a957
)
Remove the macro constant INVALID_TYPE, which is only used in comparisons, but never...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 24 Apr 2012 11:01:53 +0000
(13:01 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 24 Apr 2012 12:52:00 +0000
(14:52 +0200)
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
543aa91
..
8969c53
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-519,8
+519,6
@@
static ir_type *create_bitfield_type(const entity_t *entity)
}
}
-#define INVALID_TYPE ((ir_type*)-1)
-
enum {
COMPOUND_IS_STRUCT = false,
COMPOUND_IS_UNION = true
@@
-651,7
+649,6
@@
static ir_type *get_ir_type_incomplete(type_t *type)
type = skip_typeref(type);
if (type->base.firm_type != NULL) {
- assert(type->base.firm_type != INVALID_TYPE);
return type->base.firm_type;
}
@@
-672,7
+669,6
@@
ir_type *get_ir_type(type_t *type)
type = skip_typeref(type);
if (type->base.firm_type != NULL) {
- assert(type->base.firm_type != INVALID_TYPE);
return type->base.firm_type;
}