projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
921a4d5
)
[mlir] Use std::underlying_type_t (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 15 Oct 2022 19:11:58 +0000
(12:11 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 15 Oct 2022 19:11:58 +0000
(12:11 -0700)
mlir/tools/mlir-tblgen/EnumsGen.cpp
patch
|
blob
|
history
diff --git
a/mlir/tools/mlir-tblgen/EnumsGen.cpp
b/mlir/tools/mlir-tblgen/EnumsGen.cpp
index
0a697b0
..
60dde06
100644
(file)
--- 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 {