Skip to content

Commit cfd4961

Browse files
[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]
1 parent 4418a8e commit cfd4961

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/Support/Error.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ template <class T> class [[nodiscard]] Expected {
735735
#endif
736736
};
737737

738-
/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
739-
/// instead.
738+
/// report_fatal_error below has been soft deprecated.
739+
/// Use reportFatalInternalError() or reportFatalUsageError() instead.
740740
[[noreturn]] void report_fatal_error(Error Err, bool gen_crash_diag = true);
741741

742742
/// Report a fatal error that indicates a bug in LLVM.

llvm/include/llvm/Support/ErrorHandling.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ namespace llvm {
5959
~ScopedFatalErrorHandler() { remove_fatal_error_handler(); }
6060
};
6161

62-
/// @deprecated Use reportFatalInternalError() or reportFatalUsageError()
63-
/// instead.
62+
/// report_fatal_error below has been soft deprecated.
63+
/// Use reportFatalInternalError() or reportFatalUsageError() instead.
6464
[[noreturn]] void report_fatal_error(const char *reason,
6565
bool gen_crash_diag = true);
6666
[[noreturn]] void report_fatal_error(StringRef reason,

0 commit comments

Comments
 (0)