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 4ffc37e commit 7d78a34Copy full SHA for 7d78a34
clang/lib/Parse/ParseHLSLRootSignature.cpp
@@ -567,10 +567,11 @@ RootSignatureToken RootSignatureParser::PeekNextToken() {
567
}
568
569
bool RootSignatureParser::ConsumeNextToken() {
570
+ SourceLocation EndLoc = CurTok->TokLoc;
571
CurTok++;
572
if (LastTok == CurTok) {
573
// Report unexpected end of tokens error
- Diags.Report(CurTok->TokLoc, diag::err_hlsl_rootsig_unexpected_eos);
574
+ Diags.Report(EndLoc, diag::err_hlsl_rootsig_unexpected_eos);
575
return true;
576
577
return false;
0 commit comments