From 50a5f97e829c9878f1d611650f57b88d99c6ab96 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 29 Aug 2014 07:59:55 +0000 Subject: unique_ptrify SourceManager::createFileID llvm-svn: 216715 --- clang/unittests/AST/CommentLexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/AST/CommentLexer.cpp') diff --git a/clang/unittests/AST/CommentLexer.cpp b/clang/unittests/AST/CommentLexer.cpp index 7cac1eaaf1c..77ee22ffb43 100644 --- a/clang/unittests/AST/CommentLexer.cpp +++ b/clang/unittests/AST/CommentLexer.cpp @@ -61,7 +61,7 @@ protected: void CommentLexerTest::lexString(const char *Source, std::vector &Toks) { std::unique_ptr Buf = MemoryBuffer::getMemBuffer(Source); - FileID File = SourceMgr.createFileID(Buf.release()); + FileID File = SourceMgr.createFileID(std::move(Buf)); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); -- cgit v1.2.3