Use [[noreturn]] instead of LLVM_ATTRIBUTE_NORETURN

A recent change to LLVM removed LLVM_ATTRIBUTE_NORETURN in favor of plain C++11
[[noreturn]]. Since we require C++14 to build these days, just assume that
the [[noreturn]] attribute is available.
This commit is contained in:
Kim Gräsman 2021-08-06 12:37:44 +02:00
parent a5d8408c5f
commit 9926eb2192
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class FatalMessageEmitter {
FatalMessageEmitter(const char* file, int line, const char* message) {
stream() << file << ":" << line << ": Assertion failed: " << message;
}
LLVM_ATTRIBUTE_NORETURN ~FatalMessageEmitter() {
[[noreturn]] ~FatalMessageEmitter() {
stream() << "\n";
::abort();
#ifdef LLVM_BUILTIN_UNREACHABLE