projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly caclulate the register use in the Op(x, x) case.
[libfirm]
/
ir
/
ana
/
height.c
diff --git
a/ir/ana/height.c
b/ir/ana/height.c
index
6d3f708
..
f7a813a
100644
(file)
--- a/
ir/ana/height.c
+++ b/
ir/ana/height.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-52,9
+52,10
@@
typedef struct {
unsigned visited;
} irn_height_t;
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)
{
irn_height_t *h = data ? data : phase_alloc(ph, sizeof(h[0]));
{
irn_height_t *h = data ? data : phase_alloc(ph, sizeof(h[0]));
+ (void)irn;
memset(h, 0, sizeof(h[0]));
return h;
}
memset(h, 0, sizeof(h[0]));
return h;
}