From 156561267ea9625d9d8344cf0a7755aff96431a4 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 19 Dec 2019 14:14:36 -0300 Subject: [PATCH] Add span_bug that notes that shuffle indices must be constant --- src/librustc_codegen_ssa/mir/block.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs index fa79541701e4..9169010da880 100644 --- a/src/librustc_codegen_ssa/mir/block.rs +++ b/src/librustc_codegen_ssa/mir/block.rs @@ -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"); } }