Turn this unreachable into a panic with an error message.

This commit is contained in:
Nick Lewycky
2019-09-12 16:30:23 -07:00
parent ec94d366b0
commit 0387c3ff93

View File

@ -926,7 +926,7 @@ impl Emitter for Assembler {
match loc {
Location::GPR(x) => dynasm!(self ; call Rq(x as u8)),
Location::Memory(base, disp) => dynasm!(self ; call QWORD [Rq(base as u8) + disp]),
_ => unreachable!(),
_ => panic!("CALL {:?}", loc),
}
}