aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
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
commit7684447199028b572f60fd76e043cf32ec7caa3f (patch)
tree51589d354635da71f25b3a5ac7f5b76b6d61d274 /include/llvm/ADT
parentddb88da48d60764b6906aaeb3d929c9bb12375aa (diff)
downloadexternal_llvm-7684447199028b572f60fd76e043cf32ec7caa3f.zip
external_llvm-7684447199028b572f60fd76e043cf32ec7caa3f.tar.gz
external_llvm-7684447199028b572f60fd76e043cf32ec7caa3f.tar.bz2
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')
-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 b56c183..d292607 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)