aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-07-28 09:31:14 -0700
committerFangrui Song <i@maskray.me>2021-07-28 09:31:14 -0700
commit6da3d8b19c32c76bb503b1a71fc167a0487ef200 (patch)
treebb382aee391f9bd0977e607f5e3db2d77c912cd0 /llvm/lib/Support/CrashRecoveryContext.cpp
parent49f745f59cbe1eda4653d917cc7d8d0b586fc6a4 (diff)
downloadllvm-6da3d8b19c32c76bb503b1a71fc167a0487ef200.zip
llvm-6da3d8b19c32c76bb503b1a71fc167a0487ef200.tar.gz
llvm-6da3d8b19c32c76bb503b1a71fc167a0487ef200.tar.bz2
[llvm] Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]
[[noreturn]] can be used since Oct 2016 when the minimum compiler requirement was bumped to GCC 4.8/MSVC 2015. Note: the definition of LLVM_ATTRIBUTE_NORETURN is kept for now.
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 433d99d..b6aaf37 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -428,8 +428,7 @@ bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) {
#endif // !_MSC_VER
-LLVM_ATTRIBUTE_NORETURN
-void CrashRecoveryContext::HandleExit(int RetCode) {
+[[noreturn]] void CrashRecoveryContext::HandleExit(int RetCode) {
#if defined(_WIN32)
// SEH and VEH
::RaiseException(0xE0000000 | RetCode, 0, 0, NULL);