llvm-project
155b420f - [BasicAA] Preserve GEP element sizes at the pointer index width (#242013)

Commit
5 days ago
[BasicAA] Preserve GEP element sizes at the pointer index width (#242013) Converting a GEP element size to `unsigned` truncates sizes of 4 GiB or more, so BasicAA can return `MustAlias` for different pointers. Constructing the scale also asserts if the size does not fit a narrower pointer index. Construct the `APInt` directly from the full allocation size, allowing truncation only to the pointer index width. Fixes #242012. Assisted-by: Claude Code Assisted-by: OpenAI Codex Co-authored-by: Nikita Popov <npopov@redhat.com>
Author
Parents
Loading