[machinst x64]: assert lane is correct size for extractlane

This change applies a good suggestion @bjorn3 made in #2230 that I forgot to implement there.
This commit is contained in:
Andrew Brown
2020-09-29 08:56:40 -07:00
parent b43f4a464a
commit 715be68101

View File

@@ -2817,6 +2817,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
} else {
unreachable!();
};
debug_assert!(lane < src_ty.lane_count() as u8);
if !ty.is_float() {
let (sse_op, w_bit) = match ty.lane_bits() {