Commit 7019302
committed
[LangRef] Clarify that the pointer after an objet must be valid.
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)1 parent 72791fe commit 7019302
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11721 | 11721 | | |
11722 | 11722 | | |
11723 | 11723 | | |
11724 | | - | |
11725 | | - | |
| 11724 | + | |
| 11725 | + | |
| 11726 | + | |
11726 | 11727 | | |
11727 | 11728 | | |
11728 | 11729 | | |
| |||
0 commit comments