Auto merge of #75076 - tmiasko:simplify-goto, r=oli-obk

Fix change detection in CfgSimplifier::collapse_goto_chain

Check that the old target is different from the new collapsed one, before concluding that anything changed.

Fixes #75074
Fixes #75051
This commit is contained in:
bors 2020-08-03 07:20:21 +00:00
commit dbc2ef25fb
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,7 @@
// Caused an infinite loop during SimlifyCfg MIR transform previously.
//
// build-pass
fn main() {
loop { continue; }
}