about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2021-08-10 01:26:33 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2021-08-25 17:49:28 -0400
commitc9599c4cacb4c5b9f8a2c353ac062885525960c9 (patch)
treee63470f9cb6abf8f503dd4592ea6808e1c3c8dab /compiler/rustc_codegen_llvm
parent5e81d643d93e3a1316464b9c83c90ee26098ee7c (diff)
downloadrust-c9599c4cacb4c5b9f8a2c353ac062885525960c9.tar.gz
rust-c9599c4cacb4c5b9f8a2c353ac062885525960c9.zip
improve comment
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs
index 3ece1659b9e..a4e4fc4fffb 100644
--- a/compiler/rustc_codegen_llvm/src/consts.rs
+++ b/compiler/rustc_codegen_llvm/src/consts.rs
@@ -29,7 +29,7 @@ pub fn const_alloc_to_llvm(cx: &CodegenCx<'ll, '_>, alloc: &Allocation) -> &'ll
     let pointer_size = dl.pointer_size.bytes() as usize;
 
     // Note: this function may call `inspect_with_uninit_and_ptr_outside_interpreter`,
-    // so `range` must be within the bounds of `alloc` and not within a relocation.
+    // so `range` must be within the bounds of `alloc` and not contain or overlap a relocation.
     fn append_chunks_of_init_and_uninit_bytes<'ll, 'a, 'b>(
         llvals: &mut Vec<&'ll Value>,
         cx: &'a CodegenCx<'ll, 'b>,