From 9984b962ccf1f9964d10ef305d7dc08aaa684479 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 18 May 2006 22:35:49 +0000 Subject: [PATCH] used xrealloc instead of realloc [r7766] --- ir/ir/irphase_t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index 967608c8b..0eca0039c 100644 --- 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 **)xrealloc(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])); -- 2.20.1