We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592dc62 commit f3253edCopy full SHA for f3253ed
clang/lib/Sema/SemaHLSL.cpp
@@ -1394,8 +1394,9 @@ bool SemaHLSL::handleRootSignatureElements(
1394
Diag(Loc, diag::err_hlsl_offset_overflow) << Offset << RangeBound;
1395
}
1396
1397
- Offset = llvm::hlsl::rootsig::updateOngoingOffset(
1398
- Offset, Clause->NumDescriptors, Clause->Offset);
+ Offset = RangeBound == llvm::hlsl::rootsig::NumDescriptorsUnbounded
+ ? uint32_t(RangeBound)
1399
+ : uint32_t(RangeBound + 1);
1400
1401
// Compute the register bounds and track resource binding
1402
uint32_t LowerBound(Clause->Reg.Number);
0 commit comments