summaryrefslogtreecommitdiffstats
path: root/include/clang/Serialization
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-11 18:47:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-11 18:47:26 +0000
commit3c853484df946083142451346998b142f5255b0f (patch)
tree44531e0abe0dee734e32e8adc2107f7aa10f33ff /include/clang/Serialization
parent7a15929f4ebf5a04477b9781c6eaa4ac90fad430 (diff)
unique_ptr-ify the MemoryBuffer parameter of GlobalModuleIndex
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization')
-rw-r--r--include/clang/Serialization/GlobalModuleIndex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Serialization/GlobalModuleIndex.h b/include/clang/Serialization/GlobalModuleIndex.h
index 1f0d7523ec..c7f55f23d0 100644
--- a/include/clang/Serialization/GlobalModuleIndex.h
+++ b/include/clang/Serialization/GlobalModuleIndex.h
@@ -115,7 +115,7 @@ class GlobalModuleIndex {
unsigned NumIdentifierLookupHits;
/// \brief Internal constructor. Use \c readIndex() to read an index.
- explicit GlobalModuleIndex(llvm::MemoryBuffer *Buffer,
+ explicit GlobalModuleIndex(std::unique_ptr<llvm::MemoryBuffer> Buffer,
llvm::BitstreamCursor Cursor);
GlobalModuleIndex(const GlobalModuleIndex &) LLVM_DELETED_FUNCTION;