From d87f8d76e0633141712c32bc5266903e0a7715cd Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 27 Aug 2014 20:03:29 +0000 Subject: Update for LLVM api change. llvm-svn: 216585 --- clang/unittests/AST/CommentParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/unittests/AST/CommentParser.cpp') diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp index ae1410f377f..8c3895bda67 100644 --- a/clang/unittests/AST/CommentParser.cpp +++ b/clang/unittests/AST/CommentParser.cpp @@ -54,8 +54,8 @@ protected: }; FullComment *CommentParserTest::parseString(const char *Source) { - MemoryBuffer *Buf = MemoryBuffer::getMemBuffer(Source); - FileID File = SourceMgr.createFileID(Buf); + std::unique_ptr Buf = MemoryBuffer::getMemBuffer(Source); + FileID File = SourceMgr.createFileID(Buf.release()); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); -- cgit v1.2.3