aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorFinn Plummer <finn.c.plum@gmail.com>2025-07-15 13:25:44 -0700
committerGitHub <noreply@github.com>2025-07-15 13:25:44 -0700
commit8d61073128f8becdfaf7fb931c40a86d23fdd8e8 (patch)
tree5a5902a2f8a1383f562213d4409d4f0e6a51c9ef /clang/lib/Sema
parent1fe366d884728e37aca216891c77b16dc21ed03a (diff)
downloadllvm-8d61073128f8becdfaf7fb931c40a86d23fdd8e8.zip
llvm-8d61073128f8becdfaf7fb931c40a86d23fdd8e8.tar.gz
llvm-8d61073128f8becdfaf7fb931c40a86d23fdd8e8.tar.bz2
[NFC][SemaHLSL] Fix typo causing float to double conversion (#148941)
- it was noted, [here](https://github.com/llvm/llvm-project/pull/145795#discussion_r2208118547), 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
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaHLSL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp
index 4875c25..9276554 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)) {