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

Fix element type when reading OpPtrDiff #2683

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Aug 22, 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.

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

@vmaksimo vmaksimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

@svenvh svenvh merged commit b5938f0 into KhronosGroup:main Aug 26, 2024
9 checks passed
@svenvh svenvh deleted the ptrdiff-fix branch August 26, 2024 08:47
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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)
svenvh added a commit that referenced this pull request 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)
svenvh added a commit that referenced this pull request 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)
svenvh added a commit that referenced this pull request 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)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Aug 26, 2024
…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 pushed a commit that referenced this pull request Aug 27, 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)
MrSidims pushed a commit that referenced this pull request Aug 27, 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)
MrSidims pushed a commit that referenced this pull request Aug 27, 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)
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