aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2021-01-15 16:45:41 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2021-01-15 16:45:41 +0000
commitf2cc526f47acbeeddd77b706a212b4703562e57f (patch)
treedaa358a815290aa5f13969d954e03e4ef6d7875d /gcc/gimple.c
parent7f6cdaa9a8da173ab9e93009f5b7ff427c7f964d (diff)
downloadgcc-f2cc526f47acbeeddd77b706a212b4703562e57f.zip
gcc-f2cc526f47acbeeddd77b706a212b4703562e57f.tar.gz
gcc-f2cc526f47acbeeddd77b706a212b4703562e57f.tar.bz2
recog: Fix insn_change_watermark destructor
Noticed while working on something else that the insn_change_watermark destructor could call cancel_changes for changes that no longer exist. The loop in cancel_changes is a nop in that case, but: num_changes = num; can mess things up. I think this would only affect nested uses of insn_change_watermark. gcc/ * recog.h (insn_change_watermark::~insn_change_watermark): Avoid calling cancel_changes for changes that no longer exist.
Diffstat (limited to 'gcc/gimple.c')
0 files changed, 0 insertions, 0 deletions