used xrealloc instead of realloc
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 May 2006 22:35:49 +0000 (22:35 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 May 2006 22:35:49 +0000 (22:35 +0000)
[r7766]

ir/ir/irphase_t.h

index 967608c..0eca003 100644 (file)
@@ -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);
 
        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]));
 
        /* initialize the newly allocated memory. */
        memset(phase->data_ptr + old_cap, 0, (new_cap - old_cap) * sizeof(phase->data_ptr[0]));