Add GeneratorDrop terminator to SMIR
This commit is contained in:
parent
4b85bea4ae
commit
698acc645e
2 changed files with 2 additions and 1 deletions
|
@ -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!(),
|
||||
|
|
|
@ -42,6 +42,7 @@ pub enum Terminator {
|
|||
target: usize,
|
||||
unwind: UnwindAction,
|
||||
},
|
||||
GeneratorDrop,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
Loading…
Add table
Reference in a new issue