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

sema: fix int enum implicit cast to float. #6977

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Keenuts
Copy link
Collaborator

@Keenuts Keenuts commented Oct 21, 2024

An implicit cast from int enum to a float should be a Floating_Integral cast, not an Integral_Conversion.

Fixes #6884

@Keenuts Keenuts requested a review from a team as a code owner October 21, 2024 15:29
@Keenuts
Copy link
Collaborator Author

Keenuts commented Nov 5, 2024

@llvm-beanz : is something holding this review?

@Keenuts
Copy link
Collaborator Author

Keenuts commented Nov 7, 2024

@damyanp since I'm changing common sema I'd prefer to have MS take a look

Copy link
Collaborator

@llvm-beanz llvm-beanz left a comment

Choose a reason for hiding this comment

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

This also impacts DXIL, can you add a DXIL test too?

An implicit cast from int enum to a float should be a Floating_Integral
cast, not an Integral_Conversion.

Fixes microsoft#6884

Signed-off-by: Nathan Gauër <[email protected]>
Signed-off-by: Nathan Gauër <[email protected]>
@Keenuts
Copy link
Collaborator Author

Keenuts commented Nov 19, 2024

@llvm-beanz PTAL

1 similar comment
@Keenuts
Copy link
Collaborator Author

Keenuts commented Nov 20, 2024

@llvm-beanz PTAL

@Keenuts Keenuts enabled auto-merge (squash) November 20, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

[SPIR-V] Typed Enum Implicit Conversions Fail
3 participants