summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-26 15:23:07 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-26 15:31:36 +0100
commit9b30a0e1c102f3b9911f857c21c711d79094e8ff (patch)
treedd9f871e2cc3542197c56323b9bcef3fd63135ea /ir/be/bestack.c
parent3e5387b39fceb47f91fe5d13e8d26f7c5c9a2407 (diff)
bestack: Remove the unused return value from stack_frame_compute_initial_offset().
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 17e8cc3..bcbefc3 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -83,7 +83,7 @@ static ir_entity *search_ent_with_offset(ir_type *t, int offset)
return NULL;
}
-static int stack_frame_compute_initial_offset(be_stack_layout_t *frame)
+static void stack_frame_compute_initial_offset(be_stack_layout_t *frame)
{
ir_type *base = frame->between_type;
ir_entity *ent = search_ent_with_offset(base, 0);
@@ -93,8 +93,6 @@ static int stack_frame_compute_initial_offset(be_stack_layout_t *frame)
} else {
frame->initial_offset = be_get_stack_entity_offset(frame, ent, 0);
}
-
- return frame->initial_offset;
}
/**