Skip to content

Commit f3253ed

Browse files
committed
changing frontend check back to what it was
1 parent 592dc62 commit f3253ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,8 +1394,9 @@ bool SemaHLSL::handleRootSignatureElements(
13941394
Diag(Loc, diag::err_hlsl_offset_overflow) << Offset << RangeBound;
13951395
}
13961396

1397-
Offset = llvm::hlsl::rootsig::updateOngoingOffset(
1398-
Offset, Clause->NumDescriptors, Clause->Offset);
1397+
Offset = RangeBound == llvm::hlsl::rootsig::NumDescriptorsUnbounded
1398+
? uint32_t(RangeBound)
1399+
: uint32_t(RangeBound + 1);
13991400

14001401
// Compute the register bounds and track resource binding
14011402
uint32_t LowerBound(Clause->Reg.Number);

0 commit comments

Comments
 (0)