projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support dtor sections on Mach-O.
[libfirm]
/
ir
/
ir
/
irprog_t.h
diff --git
a/ir/ir/irprog_t.h
b/ir/ir/irprog_t.h
index
d2d12c7
..
be5b539
100644
(file)
--- a/
ir/ir/irprog_t.h
+++ b/
ir/ir/irprog_t.h
@@
-47,12
+47,8
@@
void add_irp_mode(ir_mode *mode);
static inline ir_type *
_get_segment_type(ir_segment_t segment)
{
static inline ir_type *
_get_segment_type(ir_segment_t segment)
{
- ir_type *type;
-
- assert(segment < IR_SEGMENT_COUNT);
- type = irp->segment_types[segment];
- irp->segment_types[segment] = type;
- return type;
+ assert(segment <= IR_SEGMENT_LAST);
+ return irp->segment_types[segment];
}
static inline ir_type *
}
static inline ir_type *