Skip to content

Commit 7d78a34

Browse files
committed
small missed update from restructuring
1 parent 4ffc37e commit 7d78a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,11 @@ RootSignatureToken RootSignatureParser::PeekNextToken() {
567567
}
568568

569569
bool RootSignatureParser::ConsumeNextToken() {
570+
SourceLocation EndLoc = CurTok->TokLoc;
570571
CurTok++;
571572
if (LastTok == CurTok) {
572573
// Report unexpected end of tokens error
573-
Diags.Report(CurTok->TokLoc, diag::err_hlsl_rootsig_unexpected_eos);
574+
Diags.Report(EndLoc, diag::err_hlsl_rootsig_unexpected_eos);
574575
return true;
575576
}
576577
return false;

0 commit comments

Comments
 (0)