Commit 1c567a5
authored
getelementptr inbounds clarifications (#65478)
- For a long time I assumed that `inbounds` means "in-bounds of a *live*
allocation". @nikic told me that is not correct. I think this definitely
needs clarification in the docs.
- The point about successively adding the offsets to the current address
confused be because it talked about the successive addition of "an"
offset -- which one? My interpretation was, the total accumulated offset
computed in the previous step. But @nikic told me that's not correct,
adding each offset individually has to stay in-bounds for each step. I
hope by saying "each offset" this becomes more clear; I then also change
the previous bullet to use the same terminology.1 parent 46f3ade commit 1c567a5
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10955 | 10955 | | |
10956 | 10956 | | |
10957 | 10957 | | |
10958 | | - | |
| 10958 | + | |
| 10959 | + | |
| 10960 | + | |
10959 | 10961 | | |
10960 | 10962 | | |
10961 | 10963 | | |
10962 | 10964 | | |
10963 | | - | |
| 10965 | + | |
10964 | 10966 | | |
10965 | 10967 | | |
10966 | | - | |
| 10968 | + | |
10967 | 10969 | | |
10968 | 10970 | | |
10969 | 10971 | | |
| |||
0 commit comments