From 922fbc41e496c6bb843de5d4cbe26d54f1ecdedf Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 18 Oct 2012 01:38:53 +0000 Subject: [PATCH] libclang/CXComment.cpp: Fix abuse of StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166163 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/CXComment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libclang/CXComment.cpp b/tools/libclang/CXComment.cpp index 44b947379b..90a67ca69c 100644 --- a/tools/libclang/CXComment.cpp +++ b/tools/libclang/CXComment.cpp @@ -1028,7 +1028,7 @@ void CommentASTToXMLConverter::visitVerbatimLineComment( Result << ""; } -static StringRef getSourceTextOfDeclaration(const DeclInfo *ThisDecl) { +static std::string getSourceTextOfDeclaration(const DeclInfo *ThisDecl) { ASTContext &Context = ThisDecl->CurrentDecl->getASTContext(); const LangOptions &LangOpts = Context.getLangOpts(); -- 2.50.1