mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
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:
parent
ef97c676f9
commit
4569553432
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user