llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/224599.diff


2 Files Affected:

- (modified) clang/lib/AST/ByteCode/State.cpp (-5) 
- (modified) clang/lib/AST/ByteCode/State.h (-3) 


``````````diff
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);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/224599
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to