Skip to content

Commit 0f778a6

Browse files
committed
review: update variable name
1 parent d850f63 commit 0f778a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,17 +1331,17 @@ bool SemaHLSL::handleRootSignatureElements(
13311331
std::get_if<llvm::hlsl::rootsig::DescriptorTable>(&Elem)) {
13321332
assert(UnboundClauses.size() == Table->NumClauses &&
13331333
"Number of unbound elements must match the number of clauses");
1334-
bool HasSampler = false;
1335-
bool HasNonSampler = false;
1334+
bool HasAnySampler = false;
1335+
bool HasAnyNonSampler = false;
13361336
uint32_t Offset = 0;
13371337
for (const auto &[Clause, ClauseElem] : UnboundClauses) {
13381338
SourceLocation Loc = ClauseElem->getLocation();
13391339
if (Clause->Type == llvm::dxil::ResourceClass::Sampler)
1340-
HasSampler = true;
1340+
HasAnySampler = true;
13411341
else
1342-
HasNonSampler = true;
1342+
HasAnyNonSampler = true;
13431343

1344-
if (HasSampler && HasNonSampler)
1344+
if (HasAnySampler && HasAnyNonSampler)
13451345
Diag(Loc, diag::err_hlsl_invalid_mixed_resources);
13461346

13471347
// Relevant error will have already been reported above and needs to be

0 commit comments

Comments
 (0)