diff options
Diffstat (limited to 'include/llvm/ADT/StringExtras.h')
-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 b56c183a79..d292607fd5 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -93,7 +93,7 @@ static inline std::string ftostr(double V) { return B; } -static inline std::string ftostr(APFloat V) { +static inline std::string ftostr(const APFloat& V) { if (&V.getSemantics() == &APFloat::IEEEsingle) return ftostr(V.convertToDouble()); else if (&V.getSemantics() == &APFloat::IEEEdouble) |