[llvm] [Support] FIx a warning (PR #138546)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon May 5 08:45:38 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/138546
This patch fixes:
llvm/include/llvm/Support/ErrorHandling.h:62:6: error: declaration
is marked with '@deprecated' command but does not have a deprecation
attribute [-Werror,-Wdocumentation-deprecated-sync]
>From cfd49614f39afe43a0a1ca0ac9a4146539cf9f63 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 5 May 2025 08:33:10 -0700
Subject: [PATCH] [Support] FIx a warning
This patch fixes:
llvm/include/llvm/Support/ErrorHandling.h:62:6: error: declaration
is marked with '@deprecated' command but does not have a deprecation
attribute [-Werror,-Wdocumentation-deprecated-sync]
---
llvm/include/llvm/Support/Error.h | 4 ++--
llvm/include/llvm/Support/ErrorHandling.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h
index 43deccb825347..d51067700e85e 100644
--- a/llvm/include/llvm/Support/Error.h
+++ b/llvm/include/llvm/Support/Error.h
@@ -735,8 +735,8 @@ template <class T> class [[nodiscard]] Expected {
#endif
};
-/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
-/// instead.
+/// report_fatal_error below has been soft deprecated.
+/// Use reportFatalInternalError() or reportFatalUsageError() instead.
[[noreturn]] void report_fatal_error(Error Err, bool gen_crash_diag = true);
/// Report a fatal error that indicates a bug in LLVM.
diff --git a/llvm/include/llvm/Support/ErrorHandling.h b/llvm/include/llvm/Support/ErrorHandling.h
index 85daaee10458c..63f456f74aebc 100644
--- a/llvm/include/llvm/Support/ErrorHandling.h
+++ b/llvm/include/llvm/Support/ErrorHandling.h
@@ -59,8 +59,8 @@ namespace llvm {
~ScopedFatalErrorHandler() { remove_fatal_error_handler(); }
};
-/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
-/// instead.
+/// report_fatal_error below has been soft deprecated.
+/// Use reportFatalInternalError() or reportFatalUsageError() instead.
[[noreturn]] void report_fatal_error(const char *reason,
bool gen_crash_diag = true);
[[noreturn]] void report_fatal_error(StringRef reason,
More information about the llvm-commits
mailing list