bestack: Remove the unused return value from stack_frame_compute_initial_offset().
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 26 Nov 2012 14:23:07 +0000 (15:23 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 26 Nov 2012 14:31:36 +0000 (15:31 +0100)
ir/be/bestack.c

index 17e8cc3..bcbefc3 100644 (file)
@@ -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;
 }
 
 /**