diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-11 07:27:33 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-11 07:27:33 +0000 |
commit | 40f6975af82dfe35bb25c2423cc095061bc51f3b (patch) | |
tree | 2cb2c8266fff846bc84de16326772a17b8835ef3 /tools/libclang/CXLoadedDiagnostic.cpp | |
parent | 6660ae640ad87232a6678d23ac39821347c63bca (diff) |
libclang/CXLoadedDiagnostic.cpp: Work around not to miss the string terminator on fixit.
FixIts might be exposed as C string via clang_getCString(), though the zero terminator is not allocated in CXLoadedDiagnosticSetImpl::makeString.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CXLoadedDiagnostic.cpp')
-rw-r--r-- | tools/libclang/CXLoadedDiagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CXLoadedDiagnostic.cpp b/tools/libclang/CXLoadedDiagnostic.cpp index a36976a770..607f3bb362 100644 --- a/tools/libclang/CXLoadedDiagnostic.cpp +++ b/tools/libclang/CXLoadedDiagnostic.cpp @@ -626,7 +626,7 @@ LoadResult DiagLoader::readDiagnosticBlock(llvm::BitstreamCursor &Stream, llvm::StringRef RetStr; if (readString(TopDiags, RetStr, "FIXIT", Record, BlobStart, BlobLen)) return Failure; - D->FixIts.push_back(std::make_pair(SR, createCXString(RetStr, false))); + D->FixIts.push_back(std::make_pair(SR, createCXString(RetStr))); continue; } |