]> granicus.if.org Git - llvm/commitdiff
Fix build breakage caused by r306096
authorPavel Labath <labath@google.com>
Fri, 23 Jun 2017 13:13:06 +0000 (13:13 +0000)
committerPavel Labath <labath@google.com>
Fri, 23 Jun 2017 13:13:06 +0000 (13:13 +0000)
It seems some targets don't have std::strtof and friends. Hopefully,
dropping the std:: will be fine, as that's what the compiler recommends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306098 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringExtras.h

index 0425e5ec136cc871e691340a221f1ae61e332d21..cc32bf43f29c8d707bcca1e9233953004a4872f2 100644 (file)
@@ -146,15 +146,15 @@ inline bool to_float(const Twine &T, N &Num, N (*StrTo)(const char *, char **))
 }
 
 inline bool to_float(const Twine &T, float &Num) {
-  return detail::to_float(T, Num, std::strtof);
+  return detail::to_float(T, Num, strtof);
 }
 
 inline bool to_float(const Twine &T, double &Num) {
-  return detail::to_float(T, Num, std::strtod);
+  return detail::to_float(T, Num, strtod);
 }
 
 inline bool to_float(const Twine &T, long double &Num) {
-  return detail::to_float(T, Num, std::strtold);
+  return detail::to_float(T, Num, strtold);
 }
 
 static inline std::string utostr(uint64_t X, bool isNeg = false) {