Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[NFC][SemaHLSL] Fix typo causing float to double conversion#148941

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
inbelic merged 1 commit intollvm:mainfrominbelic:inbelic/rs-fix-typo
Jul 15, 2025

Conversation

inbelic
Copy link
Contributor

  • it was noted,here, that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC

  • this commit resolves this by explicitly specifying it as a float

- it was noted, here, that by accidently not specifying this explicitlyas a float it will cause a build warning on MSVC- this commit resolves this by explicitly specifying it as a float
@llvmbotllvmbot added clangClang issues not falling into any other category clang:frontendLanguage frontend issues, e.g. anything involving "Sema" HLSLHLSL Language Support labelsJul 15, 2025
@llvmbot
Copy link
Member

@llvm/pr-subscribers-clang

Author: Finn Plummer (inbelic)

Changes
  • it was noted,here, that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC

  • this commit resolves this by explicitly specifying it as a float


Full diff:https://github.com/llvm/llvm-project/pull/148941.diff

1 Files Affected:

  • (modified) clang/lib/Sema/SemaHLSL.cpp (+1-1)
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cppindex 4875c25c76988..9276554bebf9d 100644--- a/clang/lib/Sema/SemaHLSL.cpp+++ b/clang/lib/Sema/SemaHLSL.cpp@@ -1150,7 +1150,7 @@ bool SemaHLSL::handleRootSignatureElements(       if (!llvm::hlsl::rootsig::verifyMaxAnisotropy(Sampler->MaxAnisotropy))         ReportError(Loc, 0, 16);       if (!llvm::hlsl::rootsig::verifyMipLODBias(Sampler->MipLODBias))-        ReportFloatError(Loc, -16.f, 15.99);+        ReportFloatError(Loc, -16.f, 15.99f);     } else if (const auto *Clause =                    std::get_if<llvm::hlsl::rootsig::DescriptorTableClause>(                        &Elem)) {

@llvmbot
Copy link
Member

@llvm/pr-subscribers-hlsl

Author: Finn Plummer (inbelic)

Changes
  • it was noted,here, that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC

  • this commit resolves this by explicitly specifying it as a float


Full diff:https://github.com/llvm/llvm-project/pull/148941.diff

1 Files Affected:

  • (modified) clang/lib/Sema/SemaHLSL.cpp (+1-1)
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cppindex 4875c25c76988..9276554bebf9d 100644--- a/clang/lib/Sema/SemaHLSL.cpp+++ b/clang/lib/Sema/SemaHLSL.cpp@@ -1150,7 +1150,7 @@ bool SemaHLSL::handleRootSignatureElements(       if (!llvm::hlsl::rootsig::verifyMaxAnisotropy(Sampler->MaxAnisotropy))         ReportError(Loc, 0, 16);       if (!llvm::hlsl::rootsig::verifyMipLODBias(Sampler->MipLODBias))-        ReportFloatError(Loc, -16.f, 15.99);+        ReportFloatError(Loc, -16.f, 15.99f);     } else if (const auto *Clause =                    std::get_if<llvm::hlsl::rootsig::DescriptorTableClause>(                        &Elem)) {

@inbelicinbelic merged commit8d61073 intollvm:mainJul 15, 2025
14 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"clangClang issues not falling into any other categoryHLSLHLSL Language Support
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@inbelic@llvmbot

[8]ページ先頭

©2009-2025 Movatter.jp