diff options
author | Fangrui Song <i@maskray.me> | 2021-07-28 09:31:14 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-07-28 09:31:14 -0700 |
commit | 6da3d8b19c32c76bb503b1a71fc167a0487ef200 (patch) | |
tree | bb382aee391f9bd0977e607f5e3db2d77c912cd0 /llvm/lib/LTO/LTOBackend.cpp | |
parent | 49f745f59cbe1eda4653d917cc7d8d0b586fc6a4 (diff) | |
download | llvm-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/LTO/LTOBackend.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 4e4ba4f..2840940 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -74,7 +74,7 @@ static cl::opt<bool> ThinLTOAssumeMerged( cl::desc("Assume the input has already undergone ThinLTO function " "importing and the other pre-optimization pipeline changes.")); -LLVM_ATTRIBUTE_NORETURN static void reportOpenError(StringRef Path, Twine Msg) { +[[noreturn]] static void reportOpenError(StringRef Path, Twine Msg) { errs() << "failed to open " << Path << ": " << Msg << '\n'; errs().flush(); exit(1); |