summaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index d4ce925db5b..5c98b067f4d 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -332,6 +332,7 @@ discard_useless_values (void **x, void *info ATTRIBUTE_UNUSED)
if (v->locs == 0)
{
+ CSELIB_VAL_PTR (v->u.val_rtx) = NULL;
htab_clear_slot (hash_table, x);
unchain_one_value (v);
n_useless_values--;