]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR107193.
authorEugene Rozenfeld <erozen@microsoft.com>
Mon, 10 Oct 2022 21:10:31 +0000 (14:10 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Tue, 11 Oct 2022 06:34:51 +0000 (23:34 -0700)
commit80f414e6d73f9f1683f93d83ce63a6a482e54bee
treecad454f885dfabd5a26ac729ccce7cd643a0cbc1
parentb88adba751da635c6f0c353c5bc51bbe2ecf4c89
Fix PR107193.

The bug was introduced in f30e9fd33e56a5a721346ea6140722e1b193db42.
A variable (cur_locus_e) was incorrectly declared inside a loop.
I also moved two other declarations (last and locus) down to make
the code more clear.

Tested on x86_64-pc-linux-gnu.

gcc/ChangeLog:
PR debug/107193
* tree-cfg.cc (assign_discriminators): Move declaration of cur_locus_e
out of the loop.
gcc/tree-cfg.cc