Skip to content

Commit ff510b9

Browse files
committed
Add span_bug that notes that shuffle indices must be constant
1 parent bca7398 commit ff510b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_ssa/mir/block.rs

+2
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
635635
val: Immediate(llval),
636636
layout: bx.layout_of(ty)
637637
};
638+
} else {
639+
span_bug!(span, "shuffle indices must be constant");
638640
}
639641
}
640642

0 commit comments

Comments
 (0)