Repository navigation
sema: fix int enum implicit cast to float. - #6977
Merged
Merged
Conversation
Nathan Gauër (Keenuts)
requested review from
Cassandra Beckley (cassiebeckley) and
Farzon Lotfi (farzonl)
October 21, 2024 15:29
Cassandra Beckley (cassiebeckley)
approved these changes
Oct 21, 2024
Nathan Gauër (Keenuts)
requested review from
Damyan Pepper (damyanp) and
Chris B (llvm-beanz)
October 29, 2024 17:15
Collaborator
Author
|
Chris B (@llvm-beanz) : is something holding this review? |
Collaborator
Author
|
Damyan Pepper (@damyanp) since I'm changing common sema I'd prefer to have MS take a look |
Chris B (llvm-beanz)
left a comment
Collaborator
There was a problem hiding this comment.
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]>
Nathan Gauër (Keenuts)
force-pushed
the
fix-6884
branch
from
November 12, 2024 12:45
c5b1c54 to
83cae6a
Compare
Nathan Gauër (Keenuts)
requested review from
Chris B (llvm-beanz)
and removed request for
Damyan Pepper (damyanp) and
Farzon Lotfi (farzonl)
November 12, 2024 12:46
Collaborator
Author
1 similar comment
Collaborator
Author
Nathan Gauër (Keenuts)
enabled auto-merge (squash)
November 20, 2024 16:21
Collaborator
Author
|
Chris B (@llvm-beanz) friendly ping |
2 similar comments
Collaborator
Author
|
Chris B (@llvm-beanz) friendly ping |
Collaborator
Author
|
Chris B (@llvm-beanz) friendly ping |
Tex Riddell (tex3d)
approved these changes
Dec 3, 2024
Tex Riddell (tex3d)
left a comment
Contributor
There was a problem hiding this comment.
This looks good to me.
Mxr (SjMxr233)
pushed a commit
to ShaderHelper/DirectXShaderCompiler
that referenced
this pull request
Jul 24, 2025
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An implicit cast from int enum to a float should be a Floating_Integral cast, not an Integral_Conversion.
Fixes #6884