[llvm] r306098 - Fix build breakage caused by r306096

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 06:13:07 PDT 2017


Author: labath
Date: Fri Jun 23 08:13:06 2017
New Revision: 306098

URL: http://llvm.org/viewvc/llvm-project?rev=306098&view=rev
Log:
Fix build breakage caused by r306096

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.

Modified:
    llvm/trunk/include/llvm/ADT/StringExtras.h

Modified: llvm/trunk/include/llvm/ADT/StringExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringExtras.h?rev=306098&r1=306097&r2=306098&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/StringExtras.h Fri Jun 23 08:13:06 2017
@@ -146,15 +146,15 @@ inline bool to_float(const Twine &T, N &
 }
 
 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) {




More information about the llvm-commits mailing list