[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.
This commit is contained in:
Fangrui Song 2021-07-27 18:57:33 -07:00
parent 323b9bf862
commit f2026f5d6e
1 changed files with 1 additions and 1 deletions

View File

@ -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 "