[PATCH] D101583: Partial revert of "Use std::foo_t rather than std::foo in LLVM." in googlebench
Jon Roelofs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 3 07:50:36 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaad311341736: Partial revert of "Use std::foo_t rather than std::foo in LLVM." in googlebench (authored by jroelofs).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101583/new/
https://reviews.llvm.org/D101583
Files:
llvm/utils/benchmark/src/sysinfo.cc
Index: llvm/utils/benchmark/src/sysinfo.cc
===================================================================
--- llvm/utils/benchmark/src/sysinfo.cc
+++ llvm/utils/benchmark/src/sysinfo.cc
@@ -176,8 +176,9 @@
return true;
}
-template <class Tp, class = std::enable_if_t<std::is_integral<Tp>::value>>
-bool GetSysctl(std::string const &Name, Tp *Out) {
+template <class Tp,
+ class = typename std::enable_if<std::is_integral<Tp>::value>::type>
+bool GetSysctl(std::string const& Name, Tp* Out) {
*Out = 0;
auto Buff = GetSysctlImp(Name);
if (!Buff) return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101583.342389.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210503/753769e7/attachment.bin>
More information about the llvm-commits
mailing list