diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-01-15 16:45:41 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-01-15 16:45:41 +0000 |
commit | f2cc526f47acbeeddd77b706a212b4703562e57f (patch) | |
tree | daa358a815290aa5f13969d954e03e4ef6d7875d /gcc/gimple.c | |
parent | 7f6cdaa9a8da173ab9e93009f5b7ff427c7f964d (diff) | |
download | gcc-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