diff options
| author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
|---|---|---|
| committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
| commit | 96c9d95f5174bebe02583e40683fd6e05b649d59 (patch) | |
| tree | 4fc8f19d65004392831f6b34229372ff49c88c4f /llvm/utils/FileCheck | |
| parent | 17220c188635721e948cf02d2b6ad36b267ea393 (diff) | |
| download | bcm5719-llvm-96c9d95f5174bebe02583e40683fd6e05b649d59.tar.gz bcm5719-llvm-96c9d95f5174bebe02583e40683fd6e05b649d59.zip | |
[C++11] Replace OwningPtr::take() with OwningPtr::release().
llvm-svn: 202957
Diffstat (limited to 'llvm/utils/FileCheck')
| -rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index d33db18cb86..b0196f7fa8e 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -832,7 +832,7 @@ static bool ReadCheckFile(SourceMgr &SM, // If we want to canonicalize whitespace, strip excess whitespace from the // buffer containing the CHECK lines. Remove DOS style line endings. MemoryBuffer *F = - CanonicalizeInputFile(File.take(), NoCanonicalizeWhiteSpace); + CanonicalizeInputFile(File.release(), NoCanonicalizeWhiteSpace); SM.AddNewSourceBuffer(F, SMLoc()); @@ -1234,7 +1234,7 @@ int main(int argc, char **argv) { // Remove duplicate spaces in the input file if requested. // Remove DOS style line endings. MemoryBuffer *F = - CanonicalizeInputFile(File.take(), NoCanonicalizeWhiteSpace); + CanonicalizeInputFile(File.release(), NoCanonicalizeWhiteSpace); SM.AddNewSourceBuffer(F, SMLoc()); |

