Skip to content

Commit

Permalink
Remove terminator marker from call instructionl
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Nov 28, 2024
1 parent 2eb2bee commit b737cb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/ir/src/inst/control_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ impl Phi {
}
}

// TODO: We need to perform analysis or modify function signature definition to
// know if
// * the function call has side effect
// * the function call is terminator
#[derive(Debug, Clone, PartialEq, Eq, Hash, Inst)]
#[inst(side_effect(super::SideEffect::Write))]
#[inst(terminator)]
pub struct Call {
callee: FuncRef,

Expand Down

0 comments on commit b737cb6

Please sign in to comment.