diff options
| author | Flakebi <flakebi@t-online.de> | 2025-01-24 00:37:05 +0100 |
|---|---|---|
| committer | Flakebi <flakebi@t-online.de> | 2025-01-24 00:37:05 +0100 |
| commit | b06e840d9e8e27ac1f79be5e6d2778455146f665 (patch) | |
| tree | 8cda05ea1259452e50e0ad409a7eec8587f70d6d /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 436e4fb647bca08bd5cb7eea6f8450bb56515c10 (diff) | |
| download | rust-b06e840d9e8e27ac1f79be5e6d2778455146f665.tar.gz rust-b06e840d9e8e27ac1f79be5e6d2778455146f665.zip | |
Add comments about address spaces
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 1b99fea8d51..4d572dc56fb 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1226,7 +1226,7 @@ impl<'ll> StaticBuilderMethods for Builder<'_, 'll, '_> { fn get_static(&mut self, def_id: DefId) -> &'ll Value { // Forward to the `get_static` method of `CodegenCx` let s = self.cx().get_static(def_id); - // Cast to default address space if statics are in a different addrspace + // Cast to default address space if globals are in a different addrspace self.cx().const_pointercast(s, self.type_ptr()) } } |
