diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-06 21:29:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 21:29:33 +0200 |
| commit | e56c24129e7d935040a1e09f0bdbd89ee30e0d89 (patch) | |
| tree | 072498f59582b8b46297f4b11b290ae83180a4db | |
| parent | 12d1b173fb4a125eb89637a25b193981be1b639e (diff) | |
| parent | 2909de557c6f8010224966f80d96f1d346d7adfb (diff) | |
| download | rust-e56c24129e7d935040a1e09f0bdbd89ee30e0d89.tar.gz rust-e56c24129e7d935040a1e09f0bdbd89ee30e0d89.zip | |
Rollup merge of #144996 - dianqk:simplifycfg-collapse_goto_chain-changed, r=cjgillot
simplifycfg: Mark as changed when start is modified in collapse goto chain Split from rust-lang/rust#142771. r? cjgillot
| -rw-r--r-- | compiler/rustc_mir_transform/src/simplify.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/simplify.rs b/compiler/rustc_mir_transform/src/simplify.rs index db933da6413..468ef742dfb 100644 --- a/compiler/rustc_mir_transform/src/simplify.rs +++ b/compiler/rustc_mir_transform/src/simplify.rs @@ -225,6 +225,7 @@ impl<'a, 'tcx> CfgSimplifier<'a, 'tcx> { current = target; } let last = current; + *changed |= *start != last; *start = last; while let Some((current, mut terminator)) = terminators.pop() { let Terminator { kind: TerminatorKind::Goto { ref mut target }, .. } = terminator |
