From 974be4d50a95317a85b111855946f5aa4bd15887 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 12 Feb 2010 23:31:14 +0000 Subject: Fix bug I introduced with assinging a temporary to a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96041 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Version.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Basic/Version.cpp') diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp index 0c81fdd075..434ddf3f57 100644 --- a/lib/Basic/Version.cpp +++ b/lib/Basic/Version.cpp @@ -55,7 +55,7 @@ std::string getClangFullRepositoryVersion() { std::string buf; llvm::raw_string_ostream OS(buf); OS << getClangRepositoryPath(); - llvm::StringRef Revision = getClangRevision(); + const std::string &Revision = getClangRevision(); if (!Revision.empty()) OS << ' ' << Revision; return buf; -- cgit v1.2.3-70-g09d2