libclang/CXComment.cpp: Fix abuse of StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166163 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/libclang/CXComment.cpp b/tools/libclang/CXComment.cpp
index 44b9473..90a67ca 100644
--- a/tools/libclang/CXComment.cpp
+++ b/tools/libclang/CXComment.cpp
@@ -1028,7 +1028,7 @@
   Result << "</Verbatim>";
 }
 
-static StringRef getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
+static std::string getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
   
   ASTContext &Context = ThisDecl->CurrentDecl->getASTContext();
   const LangOptions &LangOpts = Context.getLangOpts();