1
Fork 0

add span to terminator

This commit is contained in:
ouz-a 2023-09-30 16:52:10 +03:00
parent 9130484db9
commit 999a354a81
2 changed files with 76 additions and 39 deletions

View file

@ -21,7 +21,13 @@ pub struct BasicBlock {
}
#[derive(Clone, Debug)]
pub enum Terminator {
pub struct Terminator {
pub kind: TerminatorKind,
pub span: Span,
}
#[derive(Clone, Debug)]
pub enum TerminatorKind {
Goto {
target: usize,
},