summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 10:05:16 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 11:01:33 +0100
commit0ecae1d2316450870a4e297490af9d2181e5d9e9 (patch)
tree8d13f38ba3892fbc07299af7cd31f920a05d73b2 /ir/be/bestack.c
parente937cb6c0dcc8ff69e285eb050effb62204c1007 (diff)
bestack: Remove pointless local variable.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index f5c83b5..5695517 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -184,10 +184,9 @@ static int process_stack_bias(ir_node *bl, int real_bias)
/* fill in real stack frame size */
if (be_get_IncSP_align(irn)) {
/* patch IncSP to produce an aligned stack pointer */
- ir_type *between_type = layout->between_type;
- int between_size = get_type_size_bytes(between_type);
- int alignment = 1 << arch_env->stack_alignment;
- int delta = (real_bias + ofs + between_size) & (alignment - 1);
+ int const between_size = get_type_size_bytes(layout->between_type);
+ int const alignment = 1 << arch_env->stack_alignment;
+ int const delta = (real_bias + ofs + between_size) & (alignment - 1);
assert(ofs >= 0);
if (delta > 0) {
be_set_IncSP_offset(irn, ofs + alignment - delta);