Skip to content

Commit a561510

Browse files
committed
nfc: remove unused diag reporting
1 parent 74ff0c8 commit a561510

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang/include/clang/Parse/ParseHLSLRootSignature.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,8 @@ class RootSignatureParser {
197197
/// StringLiterals
198198
SourceLocation getTokenLocation(RootSignatureToken Tok);
199199

200-
DiagnosticBuilder
201-
reportDiag(unsigned DiagID,
202-
std::optional<RootSignatureToken> Context = std::nullopt) {
203-
RootSignatureToken Tok = Context.has_value() ? *Context : CurToken;
204-
return getDiags().Report(getTokenLocation(Tok), DiagID);
200+
DiagnosticBuilder reportDiag(unsigned DiagID) {
201+
return getDiags().Report(getTokenLocation(CurToken), DiagID);
205202
}
206203

207204
private:

0 commit comments

Comments
 (0)