diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-07 08:11:49 +0200 |
| commit | 2446b17745517170aee5707cc75ef3661f365f23 (patch) | |
| tree | 35c7ffbcc5794d02ec147cbd57b6b734398ffb49 /compiler/rustc_mir_dataflow/src/framework/engine.rs | |
| parent | c9dd1d9983b9a08159c2e3c86071d1a5ef7ebb20 (diff) | |
| download | rust-2446b17745517170aee5707cc75ef3661f365f23.tar.gz rust-2446b17745517170aee5707cc75ef3661f365f23.zip | |
Move `is_cfg_cyclic` from Body to BasicBlocks
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/framework/engine.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/framework/engine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/engine.rs b/compiler/rustc_mir_dataflow/src/framework/engine.rs index 20e14a77c1e..180376d648a 100644 --- a/compiler/rustc_mir_dataflow/src/framework/engine.rs +++ b/compiler/rustc_mir_dataflow/src/framework/engine.rs @@ -101,7 +101,7 @@ where // transfer function for each block exactly once (assuming that we process blocks in RPO). // // In this case, there's no need to compute the block transfer functions ahead of time. - if !body.is_cfg_cyclic() { + if !body.basic_blocks.is_cfg_cyclic() { return Self::new(tcx, body, analysis, None); } |
