diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 19:33:25 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 19:33:25 +0000 |
commit | 9a16beb8bc580212df519aa488242a94e53741d8 (patch) | |
tree | 569f8fb251291e9aaacc0ddb6d509a9561ddc264 /clang/lib/Lex/PTHLexer.cpp | |
parent | 9cbd3c628cfdcb7ba2f372b57db317df2a271ebb (diff) | |
download | bcm5719-llvm-9a16beb8bc580212df519aa488242a94e53741d8.tar.gz bcm5719-llvm-9a16beb8bc580212df519aa488242a94e53741d8.zip |
Change OwningPtr::take() to OwningPtr::release().
This is a precursor to moving to std::unique_ptr.
llvm-svn: 203275
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index dd8363df9ca..c962409dbd7 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -534,9 +534,9 @@ PTHManager *PTHManager::Create(const std::string &file, if (!len) originalSourceBase = 0; // Create the new PTHManager. - return new PTHManager(File.take(), FL.take(), IData, PerIDCache, - SL.take(), NumIds, spellingBase, - (const char*) originalSourceBase); + return new PTHManager(File.release(), FL.release(), IData, PerIDCache, + SL.release(), NumIds, spellingBase, + (const char *)originalSourceBase); } IdentifierInfo* PTHManager::LazilyCreateIdentifierInfo(unsigned PersistentID) { |