about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-17 09:57:24 +0100
committerRalf Jung <post@ralfj.de>2024-02-20 07:50:46 +0100
commit396cf1e1f51ed37e320f47e0c7ff0dc7ddcb288b (patch)
treedc5dd1871241c10dcb767adccac733e68d827443 /compiler/rustc_codegen_ssa/src
parent0b9f6ad99482c9fc35baa5f40cebf21be4fd98b3 (diff)
downloadrust-396cf1e1f51ed37e320f47e0c7ff0dc7ddcb288b.tar.gz
rust-396cf1e1f51ed37e320f47e0c7ff0dc7ddcb288b.zip
require simd_insert, simd_extract indices to be constants
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index 75d413dedad..00007110938 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -864,8 +864,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
                     .map(|(i, arg)| {
                         // The indices passed to simd_shuffle in the
                         // third argument must be constant. This is
-                        // checked by const-qualification, which also
-                        // promotes any complex rvalues to constants.
+                        // checked by the type-checker.
                         if i == 2 && intrinsic == sym::simd_shuffle {
                             if let mir::Operand::Constant(constant) = &arg.node {
                                 let (llval, ty) = self.simd_shuffle_indices(bx, constant);