don't form an std::string with a null pointer, it aborts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-01-18 18:54:31 +00:00
parent ef97c676f9
commit 4569553432

View File

@ -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 "<unknown format in ftostr>"; // error
}
static inline std::string LowercaseString(const std::string &S) {