about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorscottmcm <scottmcm@users.noreply.github.com>2023-08-04 06:22:50 +0000
committerScott McMurray <scottmcm@users.noreply.github.com>2023-08-06 15:47:40 -0700
commit75277a6606e8c7443ccd3fd1a2562c166fed7298 (patch)
tree3d6b79d57e33cff7984a3c3e204442ab51299792 /compiler/rustc_codegen_llvm/src
parent502af03445f045dade14f14e754803f02c2c5e24 (diff)
downloadrust-75277a6606e8c7443ccd3fd1a2562c166fed7298.tar.gz
rust-75277a6606e8c7443ccd3fd1a2562c166fed7298.zip
Apply suggestions from code review
Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/intrinsic.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs
index 4e86094ce3b..a9b06030e70 100644
--- a/compiler/rustc_codegen_llvm/src/intrinsic.rs
+++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs
@@ -330,6 +330,7 @@ impl<'ll, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'_, 'll, 'tcx> {
             }
 
             sym::compare_bytes => {
+                // Here we assume that the `memcmp` provided by the target is a NOP for size 0.
                 let cmp = self.call_intrinsic(
                     "memcmp",
                     &[args[0].immediate(), args[1].immediate(), args[2].immediate()],