Skip to content

Commit 1565612

Browse files
spastorinooli-obk
authored andcommitted
Add span_bug that notes that shuffle indices must be constant
1 parent 8533caa commit 1565612

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_ssa/mir/block.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
618618
c,
619619
);
620620
return OperandRef { val: Immediate(llval), layout: bx.layout_of(ty) };
621+
} else {
622+
span_bug!(span, "shuffle indices must be constant");
621623
}
622624
}
623625

0 commit comments

Comments
 (0)