diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-13 16:47:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-13 16:47:00 +0000 |
commit | 48bd21767dd3ed3723d272df1420e78c6f8f5f1e (patch) | |
tree | 83e48a5187e4f0ed1dd37be289064f0a138ee26c /include/clang/Frontend/ASTUnit.h | |
parent | 7b36de52e22f8d81aa9faada2d4972831f484d3b (diff) |
Use std::unique_ptr to simplify memory management a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/ASTUnit.h')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index d31be7e5cb..c350261ea2 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -272,12 +272,12 @@ private: /// \brief When non-NULL, this is the buffer used to store the contents of /// the main file when it has been padded for use with the precompiled /// preamble. - llvm::MemoryBuffer *SavedMainFileBuffer; + std::unique_ptr<llvm::MemoryBuffer> SavedMainFileBuffer; /// \brief When non-NULL, this is the buffer used to store the /// contents of the preamble when it has been padded to build the /// precompiled preamble. - llvm::MemoryBuffer *PreambleBuffer; + std::unique_ptr<llvm::MemoryBuffer >PreambleBuffer; /// \brief The number of warnings that occurred while parsing the preamble. /// |