Skip to content

Commit

Permalink
Add GeneratorDrop terminator to SMIR
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed May 5, 2023
1 parent 4b85bea commit 698acc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_smir/src/rustc_smir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ fn rustc_terminator_to_terminator(
unwind: rustc_unwind_to_unwind(unwind),
},
Yield { .. } => todo!(),
GeneratorDrop => todo!(),
GeneratorDrop => Terminator::GeneratorDrop,
FalseEdge { .. } => todo!(),
FalseUnwind { .. } => todo!(),
InlineAsm { .. } => todo!(),
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_smir/src/stable_mir/mir/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub enum Terminator {
target: usize,
unwind: UnwindAction,
},
GeneratorDrop,
}

#[derive(Clone, Debug)]
Expand Down

0 comments on commit 698acc6

Please sign in to comment.