diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-18 01:38:53 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-18 01:38:53 +0000 |
| commit | dbefa9b0814167bcab2c46651c137d187ec64472 (patch) | |
| tree | 9729ecafd825f3e7fed6f2517408096eebc05708 | |
| parent | fb26652c43074c6be6dab71174a9f1ff2f30fa2f (diff) | |
| download | bcm5719-llvm-dbefa9b0814167bcab2c46651c137d187ec64472.tar.gz bcm5719-llvm-dbefa9b0814167bcab2c46651c137d187ec64472.zip | |
libclang/CXComment.cpp: Fix abuse of StringRef.
llvm-svn: 166163
| -rw-r--r-- | clang/tools/libclang/CXComment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXComment.cpp b/clang/tools/libclang/CXComment.cpp index 44b947379be..90a67ca69c3 100644 --- a/clang/tools/libclang/CXComment.cpp +++ b/clang/tools/libclang/CXComment.cpp @@ -1028,7 +1028,7 @@ void CommentASTToXMLConverter::visitVerbatimLineComment( 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(); |

