Skip to content

Commit e030faf

Browse files
committed
small missed update from restructuring
1 parent 9ee3e65 commit e030faf

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
@@ -539,10 +539,11 @@ RootSignatureToken RootSignatureParser::PeekNextToken() {
539539
}
540540

541541
bool RootSignatureParser::ConsumeNextToken() {
542+
SourceLocation EndLoc = CurTok->TokLoc;
542543
CurTok++;
543544
if (LastTok == CurTok) {
544545
// Report unexpected end of tokens error
545-
Diags.Report(CurTok->TokLoc, diag::err_hlsl_rootsig_unexpected_eos);
546+
Diags.Report(EndLoc, diag::err_hlsl_rootsig_unexpected_eos);
546547
return true;
547548
}
548549
return false;

0 commit comments

Comments
 (0)