Commit 85b7dda1 authored by Michael Beck's avatar Michael Beck
Browse files

C99 feature removed.

[r27352]
parent 676ec77d
......@@ -619,14 +619,14 @@ vrp_attr *vrp_get_info(const ir_node *node)
{
const ir_graph *irg = get_irn_irg(node);
const ir_phase *phase = irg_get_phase(irg, PHASE_VRP);
vrp_attr *vrp;
if (phase == NULL) {
/* phase has not yet been initialized */
return NULL;
}
vrp_attr *vrp = phase_get_irn_data(phase, node);
vrp = phase_get_irn_data(phase, node);
if (vrp && vrp->valid) {
return vrp;
}
......
......@@ -284,8 +284,10 @@ static void conv_opt_walker(ir_node *node, void *data)
transformed = conv_transform(pred, mode);
if (node != transformed) {
vrp_attr *vrp;
exchange(node, transformed);
vrp_attr *vrp = vrp_get_info(transformed);
vrp = vrp_get_info(transformed);
if (vrp && vrp->valid) {
vrp->range_type = VRP_VARYING;
vrp->bits_set = tarval_convert_to(vrp->bits_set, mode);
......
......@@ -768,11 +768,10 @@ static void construct_ssa(ir_node *orig_block, ir_node *orig_val,
*/
static ir_node *construct_ssa_n(ir_node *def, ir_node *user, int copies)
{
ir_graph *irg;
ir_mode *mode;
irg = get_irn_irg(def);
int i, user_arity;
ir_node *newval;
ir_graph *irg = get_irn_irg(def);
ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED);
inc_irg_visited(current_ir_graph);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment