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

[Backport to 14] Fix element type when reading OpPtrDiff (#2683) #2690

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Aug 26, 2024

The first argument to IRBuilder's CreatePtrDiff must be the element type, not the pointer type; otherwise the resulting difference will be scaled incorrectly.

(cherry picked from commit b5938f0)

…p#2683)

The first argument to IRBuilder's `CreatePtrDiff` must be the element
type, not the pointer type; otherwise the resulting difference will
be scaled incorrectly.

(cherry picked from commit b5938f0)
@MrSidims MrSidims merged commit 3cd22b5 into KhronosGroup:llvm_release_140 Aug 27, 2024
9 checks passed
@svenvh svenvh deleted the Backport-to-14 branch August 27, 2024 10:35
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.

2 participants