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:
parent
a5d8408c5f
commit
9926eb2192
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue