-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getelementptr inbounds clarifications #65478
Conversation
LGTM! |
llvm/docs/LangRef.rst
Outdated
@@ -10955,15 +10955,17 @@ If the ``inbounds`` keyword is present, the result value of a | |||
:ref:`poison value <poisonvalues>` if one of the following rules is violated: | |||
|
|||
* The base pointer has an *in bounds* address of an allocated object, which | |||
means that it points into an allocated object, or to its end. | |||
means that it points into an allocated object, or to its end. Note that the | |||
object does not have to be live any more; being in-bounds of a deallocated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed.
31e138e
to
eff7fa2
Compare
I'm now receiving a bunch of scary-sounding emails: |
Yes, just ignore those. First, buildbots group multiple commits. You'll see that on the "blame list". |
inbounds
means "in-bounds of a live allocation". @nikic told me that is not correct. I think this definitely needs clarification in the docs.