[mlir] Use std::underlying_type_t (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 15 Oct 2022 19:11:58 +0000 (12:11 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 15 Oct 2022 19:11:58 +0000 (12:11 -0700)
mlir/tools/mlir-tblgen/EnumsGen.cpp

index 0a697b0..60dde06 100644 (file)
@@ -71,7 +71,7 @@ static void emitDenseMapInfo(StringRef enumName, std::string underlyingType,
       std::string(formatv("{0}::{1}", cppNamespace, enumName));
   if (underlyingType.empty())
     underlyingType =
-        std::string(formatv("std::underlying_type<{0}>::type", qualName));
+        std::string(formatv("std::underlying_type_t<{0}>", qualName));
 
   const char *const mapInfo = R"(
 namespace llvm {