Add comments about address spaces

This commit is contained in:
Flakebi
2025-01-24 00:37:05 +01:00
parent 436e4fb647
commit b06e840d9e
4 changed files with 26 additions and 1 deletions

View File

@@ -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())
}
}