diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 20ba92a4aeb..2a01c5f2d34 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -98,7 +98,7 @@ static inline std::string ftostr(const APFloat& V) { return ftostr(V.convertToDouble()); else if (&V.getSemantics() == &APFloat::IEEEsingle) return ftostr((double)V.convertToFloat()); - return 0; // error + return ""; // error } static inline std::string LowercaseString(const std::string &S) {