[Mlir-commits] [mlir] ef5647d - [mlir] Use std::underlying_type_t (NFC)

Kazu Hirata llvmlistbot at llvm.org
Sat Oct 15 12:12:13 PDT 2022


Author: Kazu Hirata
Date: 2022-10-15T12:11:58-07:00
New Revision: ef5647db64c65a457eeae5af6bc2e9beac1aba55

URL: https://github.com/llvm/llvm-project/commit/ef5647db64c65a457eeae5af6bc2e9beac1aba55
DIFF: https://github.com/llvm/llvm-project/commit/ef5647db64c65a457eeae5af6bc2e9beac1aba55.diff

LOG: [mlir] Use std::underlying_type_t (NFC)

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/EnumsGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/EnumsGen.cpp b/mlir/tools/mlir-tblgen/EnumsGen.cpp
index 0a697b079855..60dde0677b29 100644
--- a/mlir/tools/mlir-tblgen/EnumsGen.cpp
+++ b/mlir/tools/mlir-tblgen/EnumsGen.cpp
@@ -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 {


        


More information about the Mlir-commits mailing list