[clang] 6737b06 - [clang][bytecode] Remove unused State::addNotes (#224599)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 18 05:06:21 PDT 2026
Author: Timm Baeder
Date: 2026-09-18T14:06:16+02:00
New Revision: 6737b06ad3911eb7f3ef35f31307c63845a2a908
URL: https://github.com/llvm/llvm-project/commit/6737b06ad3911eb7f3ef35f31307c63845a2a908
DIFF: https://github.com/llvm/llvm-project/commit/6737b06ad3911eb7f3ef35f31307c63845a2a908.diff
LOG: [clang][bytecode] Remove unused State::addNotes (#224599)
Added:
Modified:
clang/lib/AST/ByteCode/State.cpp
clang/lib/AST/ByteCode/State.h
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/State.cpp b/clang/lib/AST/ByteCode/State.cpp
index 9dc7d86b3809f..3390164bbc680 100644
--- a/clang/lib/AST/ByteCode/State.cpp
+++ b/clang/lib/AST/ByteCode/State.cpp
@@ -95,11 +95,6 @@ OptionalDiagnostic State::Note(SourceInfo SI, diag::kind DiagId) {
return OptionalDiagnostic(&addDiag(SI.getLoc(), DiagId));
}
-void State::addNotes(ArrayRef<PartialDiagnosticAt> Diags) {
- if (hasActiveDiagnostic())
- llvm::append_range(*EvalStatus.Diag, Diags);
-}
-
DiagnosticBuilder State::report(SourceLocation Loc, diag::kind DiagId) {
return Ctx.getDiagnostics().Report(Loc, DiagId);
}
diff --git a/clang/lib/AST/ByteCode/State.h b/clang/lib/AST/ByteCode/State.h
index 0306969898ed7..07365f574fb73 100644
--- a/clang/lib/AST/ByteCode/State.h
+++ b/clang/lib/AST/ByteCode/State.h
@@ -167,9 +167,6 @@ class State {
OptionalDiagnostic Note(SourceLocation Loc, diag::kind DiagId);
OptionalDiagnostic Note(SourceInfo Loc, diag::kind DiagId);
- /// Add a stack of notes to a prior diagnostic.
- void addNotes(ArrayRef<PartialDiagnosticAt> Diags);
-
/// Directly reports a diagnostic message.
DiagnosticBuilder report(SourceLocation Loc, diag::kind DiagId);
More information about the cfe-commits
mailing list