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 9ee3e65 commit e030fafCopy full SHA for e030faf
clang/lib/Parse/ParseHLSLRootSignature.cpp
@@ -539,10 +539,11 @@ RootSignatureToken RootSignatureParser::PeekNextToken() {
539
}
540
541
bool RootSignatureParser::ConsumeNextToken() {
542
+ SourceLocation EndLoc = CurTok->TokLoc;
543
CurTok++;
544
if (LastTok == CurTok) {
545
// Report unexpected end of tokens error
- Diags.Report(CurTok->TokLoc, diag::err_hlsl_rootsig_unexpected_eos);
546
+ Diags.Report(EndLoc, diag::err_hlsl_rootsig_unexpected_eos);
547
return true;
548
549
return false;
0 commit comments