Skip to content

Conversation

VyacheslavLevytskyy
Copy link
Contributor

@VyacheslavLevytskyy VyacheslavLevytskyy commented Feb 25, 2025

This PR fixes the issue with Khronos Translator incorrectly translating calls to builtins that returns a structure and generating incorrect extractvalue applied to a pointer. The PR is to fix the issue by preserving equivalence of newly inserted values with prior values of function return's type.

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2025

CLA assistant check
All committers have signed the CLA.

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.

LGTM, just please fix the description - I believe it's better we don't reference the code in the fork codebase

@VyacheslavLevytskyy VyacheslavLevytskyy changed the title [Backport to 19] Fix incorrect translation of calls to a builtin that returns a structure [Backport to 19] Fix incorrect translation of calls to a builtin that returns a structure (#2722) Feb 25, 2025
@VyacheslavLevytskyy
Copy link
Contributor Author

LGTM, just please fix the description - I believe it's better we don't reference the code in the fork codebase

ok, thank you!

@MrSidims MrSidims merged commit 0cf86c9 into KhronosGroup:llvm_release_190 Feb 26, 2025
9 checks passed
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.

4 participants