forked from OSchip/llvm-project
don't form an std::string with a null pointer, it aborts.
llvm-svn: 46166
This commit is contained in:
parent
87757d38b3
commit
6d4ee152ff
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue