[Mlir-commits] [mlir] f2026f5 - [mlir] Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]
Fangrui Song
llvmlistbot at llvm.org
Tue Jul 27 18:57:39 PDT 2021
Author: Fangrui Song
Date: 2021-07-27T18:57:33-07:00
New Revision: f2026f5d6e4fc593ba1d5f0fb5a3393688b8e6dc
URL: https://github.com/llvm/llvm-project/commit/f2026f5d6e4fc593ba1d5f0fb5a3393688b8e6dc
DIFF: https://github.com/llvm/llvm-project/commit/f2026f5d6e4fc593ba1d5f0fb5a3393688b8e6dc.diff
LOG: [mlir] Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]
[[noreturn]] can be used since 2016 when the minimum compiler requirement was bumped to GCC 4.8/MSVC 2015.
Added:
Modified:
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/DataLayoutInterfaces.cpp b/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
index f32acd5133fd6..6244ac13ead95 100644
--- a/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
+++ b/mlir/lib/Interfaces/DataLayoutInterfaces.cpp
@@ -23,7 +23,7 @@ using namespace mlir;
/// Reports that the given type is missing the data layout information and
/// exits.
-static LLVM_ATTRIBUTE_NORETURN void reportMissingDataLayout(Type type) {
+[[noreturn]] static void reportMissingDataLayout(Type type) {
std::string message;
llvm::raw_string_ostream os(message);
os << "neither the scoping op nor the type class provide data layout "
More information about the Mlir-commits
mailing list