projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
097a68f
)
used xrealloc instead of realloc
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 18 May 2006 22:35:49 +0000
(22:35 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 18 May 2006 22:35:49 +0000
(22:35 +0000)
[r7766]
ir/ir/irphase_t.h
patch
|
blob
|
history
diff --git
a/ir/ir/irphase_t.h
b/ir/ir/irphase_t.h
index
967608c
..
0eca003
100644
(file)
--- a/
ir/ir/irphase_t.h
+++ b/
ir/ir/irphase_t.h
@@
-133,7
+133,7
@@
static INLINE void _private_phase_enlarge(phase_t *phase, unsigned max_idx)
max_idx = MAX(max_idx, last_irg_idx);
new_cap = (size_t) (max_idx * phase->growth_factor / 256);
- phase->data_ptr = (void **)
realloc(phase->data_ptr, new_cap * sizeof(phase->data_ptr[0]));
+ phase->data_ptr = (void **)
x
realloc(phase->data_ptr, new_cap * sizeof(phase->data_ptr[0]));
/* initialize the newly allocated memory. */
memset(phase->data_ptr + old_cap, 0, (new_cap - old_cap) * sizeof(phase->data_ptr[0]));