Skip to content

Commit ef28c05

Browse files
committed
small missed update from restructuring
1 parent b643259 commit ef28c05

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
@@ -546,10 +546,11 @@ RootSignatureToken RootSignatureParser::PeekNextToken() {
546546
}
547547

548548
bool RootSignatureParser::ConsumeNextToken() {
549+
SourceLocation EndLoc = CurTok->TokLoc;
549550
CurTok++;
550551
if (LastTok == CurTok) {
551552
// Report unexpected end of tokens error
552-
Diags.Report(CurTok->TokLoc, diag::err_hlsl_rootsig_unexpected_eos);
553+
Diags.Report(EndLoc, diag::err_hlsl_rootsig_unexpected_eos);
553554
return true;
554555
}
555556
return false;

0 commit comments

Comments
 (0)