remove old is_terminating function
for InstructionData. Use generated `is_terminator()` for `Opcode` instead. `is_terminator`, `can_trap` and `is_branch` functions are now public. fix syntax error
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
8285f2a672
commit
de0ea36942
@@ -109,7 +109,7 @@ impl<'a> Verifier<'a> {
|
||||
|
||||
fn ebb_integrity(&self, ebb: Ebb, inst: Inst) -> Result<()> {
|
||||
|
||||
let is_terminator = self.func.dfg[inst].is_terminating();
|
||||
let is_terminator = self.func.dfg[inst].opcode().is_terminator();
|
||||
let is_last_inst = self.func.layout.last_inst(ebb) == inst;
|
||||
|
||||
if is_terminator && !is_last_inst {
|
||||
|
||||
Reference in New Issue
Block a user