File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments