diff options
| author | scottmcm <scottmcm@users.noreply.github.com> | 2023-08-04 06:22:50 +0000 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-08-06 15:47:40 -0700 |
| commit | 75277a6606e8c7443ccd3fd1a2562c166fed7298 (patch) | |
| tree | 3d6b79d57e33cff7984a3c3e204442ab51299792 /compiler/rustc_codegen_llvm/src | |
| parent | 502af03445f045dade14f14e754803f02c2c5e24 (diff) | |
| download | rust-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.rs | 1 |
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()], |
