diff options
author | Pavel Labath <labath@google.com> | 2017-06-23 13:13:06 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-06-23 13:13:06 +0000 |
commit | b0871add86c56e554268d8b061db208db51d91e3 (patch) | |
tree | 251b7b298daf4ec93a65bfc7094000519dbb732d | |
parent | dbf8f5ace7d280c03cd40c8091ff5a208ece104d (diff) | |
download | bcm5719-llvm-b0871add86c56e554268d8b061db208db51d91e3.tar.gz bcm5719-llvm-b0871add86c56e554268d8b061db208db51d91e3.zip |
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.
llvm-svn: 306098
-rw-r--r-- | llvm/include/llvm/ADT/StringExtras.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h index 0425e5ec136..cc32bf43f29 100644 --- a/llvm/include/llvm/ADT/StringExtras.h +++ b/llvm/include/llvm/ADT/StringExtras.h @@ -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) { |