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

llvm-svn: 46166
This commit is contained in:
Chris Lattner 2008-01-18 18:54:31 +00:00
parent 87757d38b3
commit 6d4ee152ff
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static inline std::string ftostr(const APFloat& V) {
return ftostr(V.convertToDouble()); return ftostr(V.convertToDouble());
else if (&V.getSemantics() == &APFloat::IEEEsingle) else if (&V.getSemantics() == &APFloat::IEEEsingle)
return ftostr((double)V.convertToFloat()); return ftostr((double)V.convertToFloat());
return 0; // error return "<unknown format in ftostr>"; // error
} }
static inline std::string LowercaseString(const std::string &S) { static inline std::string LowercaseString(const std::string &S) {