aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/StringExtras.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-31 17:03:33 +0000
committerDale Johannesen <dalej@apple.com>2007-08-31 17:03:33 +0000
commitee8476847da85e1ac44744f7f64de0675b89dc15 (patch)
tree51589d354635da71f25b3a5ac7f5b76b6d61d274 /include/llvm/ADT/StringExtras.h
parent1b5dcc34b701639f94008658a2042abc43b9b910 (diff)
Revise per review of previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/StringExtras.h')
-rw-r--r--include/llvm/ADT/StringExtras.h2
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)