[Lldb-commits] [lldb] r216603 - Update for LLVM API change.

Rafael Espindola rafael.espindola at gmail.com
Wed Aug 27 13:09:08 PDT 2014


Author: rafael
Date: Wed Aug 27 15:09:08 2014
New Revision: 216603

URL: http://llvm.org/viewvc/llvm-project?rev=216603&view=rev
Log:
Update for LLVM API change.

Modified:
    lldb/trunk/source/Expression/ClangExpressionParser.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=216603&r1=216602&r2=216603&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Wed Aug 27 15:09:08 2014
@@ -333,8 +333,8 @@ ClangExpressionParser::Parse (Stream &st
 
     if (!created_main_file)
     {
-        MemoryBuffer *memory_buffer = MemoryBuffer::getMemBufferCopy(expr_text, __FUNCTION__);
-        SourceMgr.setMainFileID(SourceMgr.createFileID(memory_buffer));
+        std::unique_ptr<MemoryBuffer> memory_buffer = MemoryBuffer::getMemBufferCopy(expr_text, __FUNCTION__);
+        SourceMgr.setMainFileID(SourceMgr.createFileID(memory_buffer.release()));
     }
 
     diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor());





More information about the lldb-commits mailing list