diff options
author | Justin Lebar <jlebar@google.com> | 2020-02-10 20:33:08 -0800 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2020-02-11 15:12:51 -0800 |
commit | 1bd6123b781120c9190b9ba58b900cdcb718cdd1 (patch) | |
tree | 95e2b3ac76c169b8d37bf0545531a8cadb017da3 /llvm/lib/Demangle/ItaniumDemangle.cpp | |
parent | 3ff4e2eee8c39fd4ae13b1df412f0af219fbf382 (diff) | |
download | llvm-1bd6123b781120c9190b9ba58b900cdcb718cdd1.zip llvm-1bd6123b781120c9190b9ba58b900cdcb718cdd1.tar.gz llvm-1bd6123b781120c9190b9ba58b900cdcb718cdd1.tar.bz2 |
Use std::foo_t rather than std::foo in LLVM.
Summary: C++14 migration. No functional change.
Reviewers: bkramer, JDevlieghere, lebedev.ri
Subscribers: MatzeB, hiraditya, jkorous, dexonsmith, arphaman, kadircet, lebedev.ri, usaxena95, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D74384
Diffstat (limited to 'llvm/lib/Demangle/ItaniumDemangle.cpp')
-rw-r--r-- | llvm/lib/Demangle/ItaniumDemangle.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp index e112d5c..fad9b6b 100644 --- a/llvm/lib/Demangle/ItaniumDemangle.cpp +++ b/llvm/lib/Demangle/ItaniumDemangle.cpp @@ -107,13 +107,11 @@ struct DumpVisitor { // Overload used when T is exactly 'bool', not merely convertible to 'bool'. void print(bool B) { printStr(B ? "true" : "false"); } - template <class T> - typename std::enable_if<std::is_unsigned<T>::value>::type print(T N) { + template <class T> std::enable_if_t<std::is_unsigned<T>::value> print(T N) { fprintf(stderr, "%llu", (unsigned long long)N); } - template <class T> - typename std::enable_if<std::is_signed<T>::value>::type print(T N) { + template <class T> std::enable_if_t<std::is_signed<T>::value> print(T N) { fprintf(stderr, "%lld", (long long)N); } |