@@ -1361,7 +1361,7 @@ bool SemaHLSL::handleRootSignatureElements(
1361
1361
bool HasAnySampler = false ;
1362
1362
bool HasAnyNonSampler = false ;
1363
1363
uint64_t Offset = 0 ;
1364
- bool Unbound = false ;
1364
+ bool IsPrevUnbound = false ;
1365
1365
for (const auto &[Clause, ClauseElem] : UnboundClauses) {
1366
1366
SourceLocation Loc = ClauseElem->getLocation ();
1367
1367
if (Clause->Type == llvm::dxil::ResourceClass::Sampler)
@@ -1386,15 +1386,15 @@ bool SemaHLSL::handleRootSignatureElements(
1386
1386
uint64_t RangeBound = llvm::hlsl::rootsig::computeRangeBound (
1387
1387
Offset, Clause->NumDescriptors );
1388
1388
1389
- if (Unbound && IsAppending)
1389
+ if (IsPrevUnbound && IsAppending)
1390
1390
Diag (Loc, diag::err_hlsl_appending_onto_unbound);
1391
1391
else if (!llvm::hlsl::rootsig::verifyNoOverflowedOffset (RangeBound))
1392
1392
Diag (Loc, diag::err_hlsl_offset_overflow) << Offset << RangeBound;
1393
1393
1394
1394
// Update offset to be 1 past this range's bound
1395
1395
Offset = RangeBound + 1 ;
1396
- Unbound = Clause->NumDescriptors ==
1397
- llvm::hlsl::rootsig::NumDescriptorsUnbounded;
1396
+ IsPrevUnbound = Clause->NumDescriptors ==
1397
+ llvm::hlsl::rootsig::NumDescriptorsUnbounded;
1398
1398
1399
1399
// Compute the register bounds and track resource binding
1400
1400
uint32_t LowerBound (Clause->Reg .Number );
0 commit comments