summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-05-09 18:27:27 +0200
committerRalf Jung <post@ralfj.de>2024-05-09 18:59:00 +0200
commit95582e6fcbd5e62dd8f1148abc1689751357f036 (patch)
treec3e02af7e4c2177fa4d8a8c097923f8d0e07f77e /compiler/rustc_codegen_llvm/src/builder.rs
parent8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff (diff)
downloadrust-95582e6fcbd5e62dd8f1148abc1689751357f036.tar.gz
rust-95582e6fcbd5e62dd8f1148abc1689751357f036.zip
codegen: memmove/memset cannot be non-temporal
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs
index 1a1b4ae3831..c85ace2ecd6 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -976,6 +976,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         align: Align,
         flags: MemFlags,
     ) {
+        assert!(!flags.contains(MemFlags::NONTEMPORAL), "non-temporal memset not supported");
         let is_volatile = flags.contains(MemFlags::VOLATILE);
         unsafe {
             llvm::LLVMRustBuildMemSet(