summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Gräsman <kim.grasman@gmail.com>2021-08-06 12:37:44 +0200
committerKim Gräsman <kim.grasman@gmail.com>2021-08-06 13:52:19 +0200
commit9926eb2192934a12955204ef74686e3ba39b79f1 (patch)
tree2dca9c9e2d980674466c4a1e65ee4fc3201f457b
parenta5d8408c5f2cd8579d6cb12fddc7a9727ea83f21 (diff)
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.
-rw-r--r--iwyu_port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iwyu_port.h b/iwyu_port.h
index d890575..e1fabb3 100644
--- a/iwyu_port.h
+++ b/iwyu_port.h
@@ -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