diff options
| author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 20:03:18 +0000 |
|---|---|---|
| committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 20:03:18 +0000 |
| commit | b89843299a118d9f97774f35e59f9b541ef5e284 (patch) | |
| tree | ee6366d2f652d2475d52f6ea9b4fbbc64dc2647e /clang/tools/libclang/CXLoadedDiagnostic.cpp | |
| parent | 629afaefe0cd1a583ccee54918b7b13f48bfe273 (diff) | |
| download | bcm5719-llvm-b89843299a118d9f97774f35e59f9b541ef5e284.tar.gz bcm5719-llvm-b89843299a118d9f97774f35e59f9b541ef5e284.zip | |
Replace OwningPtr with std::unique_ptr.
This compiles cleanly with lldb/lld/clang-tools-extra/llvm.
llvm-svn: 203279
Diffstat (limited to 'clang/tools/libclang/CXLoadedDiagnostic.cpp')
| -rw-r--r-- | clang/tools/libclang/CXLoadedDiagnostic.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/tools/libclang/CXLoadedDiagnostic.cpp b/clang/tools/libclang/CXLoadedDiagnostic.cpp index 2871256b0cb..679c5285263 100644 --- a/clang/tools/libclang/CXLoadedDiagnostic.cpp +++ b/clang/tools/libclang/CXLoadedDiagnostic.cpp @@ -259,7 +259,7 @@ CXDiagnosticSet DiagLoader::load(const char *file) { FileSystemOptions FO; FileManager FileMgr(FO); - OwningPtr<llvm::MemoryBuffer> Buffer; + std::unique_ptr<llvm::MemoryBuffer> Buffer; Buffer.reset(FileMgr.getBufferForFile(file)); if (!Buffer) { @@ -284,7 +284,8 @@ CXDiagnosticSet DiagLoader::load(const char *file) { return 0; } - OwningPtr<CXLoadedDiagnosticSetImpl> Diags(new CXLoadedDiagnosticSetImpl()); + std::unique_ptr<CXLoadedDiagnosticSetImpl> Diags( + new CXLoadedDiagnosticSetImpl()); while (true) { unsigned BlockID = 0; @@ -539,8 +540,8 @@ LoadResult DiagLoader::readDiagnosticBlock(llvm::BitstreamCursor &Stream, reportInvalidFile("malformed diagnostic block"); return Failure; } - - OwningPtr<CXLoadedDiagnostic> D(new CXLoadedDiagnostic()); + + std::unique_ptr<CXLoadedDiagnostic> D(new CXLoadedDiagnostic()); RecordData Record; while (true) { |

