https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/224599
None >From 3784372a564b18536c7cb88a690391a483d333db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]> Date: Fri, 18 Sep 2026 12:54:37 +0200 Subject: [PATCH] [clang][bytecode] Remove unused State::addNotes --- clang/lib/AST/ByteCode/State.cpp | 5 ----- clang/lib/AST/ByteCode/State.h | 3 --- 2 files changed, 8 deletions(-) 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); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
