Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add span_bug that notes that shuffle indices must be constant
  • Loading branch information
spastorino authored and oli-obk committed Jan 10, 2020
1 parent 8533caa commit 1565612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_codegen_ssa/mir/block.rs
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 1565612

Please sign in to comment.