aboutsummaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index 48ec937..68d4284 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -2464,7 +2464,7 @@ cselib_record_autoinc_cb (rtx mem ATTRIBUTE_UNUSED, rtx op ATTRIBUTE_UNUSED,
data->n_sets++;
- return -1;
+ return 0;
}
/* Record the effects of any sets and autoincs in INSN. */
@@ -2523,7 +2523,7 @@ cselib_record_sets (rtx_insn *insn)
data.sets = sets;
data.n_sets = n_sets_before_autoinc = n_sets;
- for_each_inc_dec (&insn, cselib_record_autoinc_cb, &data);
+ for_each_inc_dec (PATTERN (insn), cselib_record_autoinc_cb, &data);
n_sets = data.n_sets;
/* Look up the values that are read. Do this before invalidating the