summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RewriterTestContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/RewriterTestContext.h')
-rw-r--r--clang/unittests/Tooling/RewriterTestContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/RewriterTestContext.h b/clang/unittests/Tooling/RewriterTestContext.h
index bf25f8c9989..82c00582f1f 100644
--- a/clang/unittests/Tooling/RewriterTestContext.h
+++ b/clang/unittests/Tooling/RewriterTestContext.h
@@ -52,7 +52,7 @@ class RewriterTestContext {
llvm::MemoryBuffer::getMemBuffer(Content);
const FileEntry *Entry =
Files.getVirtualFile(Name, Source->getBufferSize(), 0);
- Sources.overrideFileContents(Entry, Source.release());
+ Sources.overrideFileContents(Entry, std::move(Source));
assert(Entry != nullptr);
return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User);
}
OpenPOWER on IntegriCloud