Remove the unused Nullary instruction format.

This format was only used by the trap instruction which has its own
format now.
This commit is contained in:
Jakob Stoklund Olesen
2017-09-20 15:59:13 -07:00
parent e8723be33f
commit 8def91b4ad
6 changed files with 18 additions and 14 deletions

View File

@@ -321,7 +321,6 @@ impl<'a> Verifier<'a> {
}
// Exhaustive list so we can't forget to add new formats
Nullary { .. } |
Unary { .. } |
UnaryImm { .. } |
UnaryIeee32 { .. } |
@@ -1048,9 +1047,10 @@ mod tests {
let mut func = Function::new();
let ebb0 = func.dfg.make_ebb();
func.layout.append_ebb(ebb0);
let nullary_with_bad_opcode = func.dfg.make_inst(
InstructionData::Nullary { opcode: Opcode::Jump },
);
let nullary_with_bad_opcode = func.dfg.make_inst(InstructionData::UnaryImm {
opcode: Opcode::Jump,
imm: 0.into(),
});
func.layout.append_inst(nullary_with_bad_opcode, ebb0);
let flags = &settings::Flags::new(&settings::builder());
let verifier = Verifier::new(&func, flags.into());