Apply suggestions from review
Co-authored-by: matthewjasper <20113453+matthewjasper@users.noreply.github.com>
This commit is contained in:
parent
33337bb855
commit
eb94cdd85e
2 changed files with 3 additions and 3 deletions
|
@ -185,14 +185,14 @@ const ROOT_NODE: DropIdx = DropIdx::from_u32(0);
|
||||||
/// * Drops on return and loop exit paths
|
/// * Drops on return and loop exit paths
|
||||||
///
|
///
|
||||||
/// Once no more nodes could be added to the tree, we lower it to MIR in one go
|
/// Once no more nodes could be added to the tree, we lower it to MIR in one go
|
||||||
/// in `build_drop_tree`.
|
/// in `build_mir`.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct DropTree {
|
struct DropTree {
|
||||||
/// Drops in the tree.
|
/// Drops in the tree.
|
||||||
drops: IndexVec<DropIdx, (DropData, DropIdx)>,
|
drops: IndexVec<DropIdx, (DropData, DropIdx)>,
|
||||||
/// Map for finding the inverse of the `next_drop` relation:
|
/// Map for finding the inverse of the `next_drop` relation:
|
||||||
///
|
///
|
||||||
/// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind] == i`
|
/// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind)] == i`
|
||||||
previous_drops: FxHashMap<(DropIdx, Local, DropKind), DropIdx>,
|
previous_drops: FxHashMap<(DropIdx, Local, DropKind), DropIdx>,
|
||||||
/// Edges into the `DropTree` that need to be added once it's lowered.
|
/// Edges into the `DropTree` that need to be added once it's lowered.
|
||||||
entry_points: Vec<(DropIdx, BasicBlock)>,
|
entry_points: Vec<(DropIdx, BasicBlock)>,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// compile-flags: -C opt-level=3
|
// compile-flags: -C opt-level=3
|
||||||
// aux-build: issue-72470-lib.rs
|
// aux-build: issue-72470-lib.rs
|
||||||
// edition:2018
|
// edition:2018
|
||||||
// check-pass
|
// build-pass
|
||||||
|
|
||||||
// Regression test for issue #72470, using the minimization
|
// Regression test for issue #72470, using the minimization
|
||||||
// in https://github.com/jonas-schievink/llvm-error
|
// in https://github.com/jonas-schievink/llvm-error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue