From dddd958939da168e8c13df639319a783b35993d7 Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Mon, 21 Oct 2024 12:17:47 +0200 Subject: [PATCH] small fix --- src/utils/block_ext.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/block_ext.rs b/src/utils/block_ext.rs index 4c33a039b..666034702 100644 --- a/src/utils/block_ext.rs +++ b/src/utils/block_ext.rs @@ -143,9 +143,10 @@ pub trait BlockExt<'ctx> { /// - https://llvm.org/docs/GetElementPtr.html /// /// Get Element Pointer is used to index into pointers, it uses the given - /// element type to compute the offsets, it allows offsetting deep into a structure (field of field of a ptr for example), + /// element type to compute the offsets, it allows indexing deep into a structure (field of field of a ptr for example), /// this is why it accepts a array of indexes, it indexes through the list, offsetting depending on the element type, - /// it also knows when you index into a struct, so the next index uses the struct field for offsets, etc. + /// for example it knows when you index into a struct field, the following index will use the struct field type for offsets, etc. + /// /// Address computation is done at compile time. /// /// Note: This GEP sets the inbounds attribute, all GEPs we do in native should be inbounds, llvm inbounds requires the following: