summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-04-05 16:59:36 +0200
committerMatthias Braun <matze@braunis.de>2011-04-08 11:20:42 +0200
commitd8e2e801254f56a80c47dbb610d1af7f055b14d3 (patch)
tree167e5c0870b9c19c8aef6b0e8f7257f5457f724e /ir/be/bestack.c
parentb4559ec03fdb815542c75600384afb295600baa9 (diff)
all backends have decreasing stack
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 1e42e8b..90b8407 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -86,12 +86,11 @@ static ir_entity *search_ent_with_offset(ir_type *t, int offset)
static int stack_frame_compute_initial_offset(be_stack_layout_t *frame)
{
- ir_type *base = frame->stack_dir < 0 ? frame->between_type : frame->frame_type;
+ ir_type *base = frame->between_type;
ir_entity *ent = search_ent_with_offset(base, 0);
if (ent == NULL) {
- frame->initial_offset
- = frame->stack_dir < 0 ? get_type_size_bytes(frame->frame_type) : get_type_size_bytes(frame->between_type);
+ frame->initial_offset = get_type_size_bytes(frame->frame_type);
} else {
frame->initial_offset = be_get_stack_entity_offset(frame, ent, 0);
}