Skip to content
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

PR for llvm/llvm-project#53559 #66

Merged
merged 1 commit into from
Feb 21, 2022
Merged

PR for llvm/llvm-project#53559 #66

merged 1 commit into from
Feb 21, 2022

Conversation

llvmbot
Copy link
Owner

@llvmbot llvmbot commented Feb 15, 2022

resolves llvm#53559

Use existing functionality to strip constant offsets that works well
with AS casts and avoids the code duplication.

Since we strip AS casts during the computation of the offset we also
need to adjust the APInt properly to avoid mismatches in the bit width.
This code ensures the caller of `compute` sees APInts that match the
index type size of the value passed to `compute`, not the value result
of the strip pointer cast.

Fixes llvm#53559.

Differential Revision: https://reviews.llvm.org/D118727

(cherry picked from commit 29c8eba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants