Add span_bug that notes that shuffle indices must be constant

This commit is contained in:
Santiago Pastorino 2019-12-19 14:14:36 -03:00 committed by Oliver Scherer
parent 8533caa26f
commit 156561267e

View file

@ -618,6 +618,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
c,
);
return OperandRef { val: Immediate(llval), layout: bx.layout_of(ty) };
} else {
span_bug!(span, "shuffle indices must be constant");
}
}