Add GeneratorDrop terminator to SMIR

This commit is contained in:
Santiago Pastorino 2023-04-24 18:17:24 -03:00
parent 4b85bea4ae
commit 698acc645e
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF
2 changed files with 2 additions and 1 deletions

View File

@ -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!(),

View File

@ -42,6 +42,7 @@ pub enum Terminator {
target: usize,
unwind: UnwindAction,
},
GeneratorDrop,
}
#[derive(Clone, Debug)]