diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-18 18:54:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-18 18:54:31 +0000 |
commit | 45695534323a1e79a49eca5f8cc7423ec798244b (patch) | |
tree | 871cfcbcb8cc260af1aacdb9fc68839ecd8e8483 /include/llvm | |
parent | ef97c676f97d33312eb5009522a9d51f2c25ccb1 (diff) | |
download | external_llvm-45695534323a1e79a49eca5f8cc7423ec798244b.zip external_llvm-45695534323a1e79a49eca5f8cc7423ec798244b.tar.gz external_llvm-45695534323a1e79a49eca5f8cc7423ec798244b.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 20ba92a..2a01c5f 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 "<unknown format in ftostr>"; // error } static inline std::string LowercaseString(const std::string &S) { |