X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fheight.c;h=f7a813a35e5bb2d0acbaa3caf834c50b1b6efce7;hb=7e8388fa7996ff182d3aa4e0cdd41b27bed4982f;hp=df1bae3767f1d6fdfe14d45e70140bf23750581a;hpb=3571b99127e71fef4e0e017b2b60ea5be6210468;p=libfirm diff --git a/ir/ana/height.c b/ir/ana/height.c index df1bae376..f7a813a35 100644 --- a/ir/ana/height.c +++ b/ir/ana/height.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -52,10 +52,10 @@ typedef struct { unsigned visited; } irn_height_t; -static void *irn_height_init(ir_phase *ph, ir_node *irn, void *data) +static void *irn_height_init(ir_phase *ph, const ir_node *irn, void *data) { - (void) irn; irn_height_t *h = data ? data : phase_alloc(ph, sizeof(h[0])); + (void)irn; memset(h, 0, sizeof(h[0])); return h; }