llvm-project
47822c80 - [LangRef] Clarify that the pointer after an object must be valid. (#127892)

Commit
297 days ago
[LangRef] Clarify that the pointer after an object must be valid. (#127892) In some places, we rely on the assumption that the pointer after the object must also be valid and not overflow, but it does not seem to be spelled out clearly in LangRef, unless I missed a reference. The GetElementPtr section mentions that the maximum object size is half the pointer index type space, but then the pointer past the object may wrap. Clarify that the pointer after the object must also be valid. This should match Alive2's semantics: https://alive2.llvm.org/ce/z/Dk8QFL (https://github.com/AliveToolkit/alive2/blob/master/tools/transform.cpp#L1288) PR: https://github.com/llvm/llvm-project/pull/127892
Author
Parents
Loading