summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-12-25 07:22:05 +0100
committerMatthias Braun <matze@braunis.de>2014-12-25 07:41:10 +0100
commitadc18679e6018ec7d8d567878b18d2a4c70707dc (patch)
treef619c02371adc9c6ca004ac47918178360148bb2 /ir/be/beinfo.c
parentb65123282501401f0c0cfc3fa9fb8a4138a6721f (diff)
cleanup, use C99
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 471b8bc..cbb38c7 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -27,15 +27,12 @@ static copy_attr_func old_phi_copy_attr;
void be_info_new_node(ir_graph *irg, ir_node *node)
{
- struct obstack *obst;
- backend_info_t *info;
-
/* Projs need no be info, all info is fetched from their predecessor */
if (is_Proj(node))
return;
- obst = be_get_be_obst(irg);
- info = OALLOCZ(obst, backend_info_t);
+ struct obstack *obst = be_get_be_obst(irg);
+ backend_info_t *info = OALLOCZ(obst, backend_info_t);
assert(node->backend_info == NULL);
node->backend_info = info;