Skip to content

Commit f2026f5

Browse files
committed
[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.
1 parent 323b9bf commit f2026f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Interfaces/DataLayoutInterfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace mlir;
2323

2424
/// Reports that the given type is missing the data layout information and
2525
/// exits.
26-
static LLVM_ATTRIBUTE_NORETURN void reportMissingDataLayout(Type type) {
26+
[[noreturn]] static void reportMissingDataLayout(Type type) {
2727
std::string message;
2828
llvm::raw_string_ostream os(message);
2929
os << "neither the scoping op nor the type class provide data layout "

0 commit comments

Comments
 (0)