Author: spyffe
Date: Fri Aug 29 21:24:56 2014
New Revision: 216810
URL: http://llvm.org/viewvc/llvm-project?rev=216810&view=rev
Log:
Fixed a build problem dueo to changes in the
way ownership of memory buffers is handled in
clang's SourceManager.
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=216810&r1=216809&r2=216810&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Fri Aug 29 21:24:56
2014
@@ -334,7 +334,7 @@ ClangExpressionParser::Parse (Stream &st
if (!created_main_file)
{
std::unique_ptr<MemoryBuffer> memory_buffer =
MemoryBuffer::getMemBufferCopy(expr_text, __FUNCTION__);
-
SourceMgr.setMainFileID(SourceMgr.createFileID(memory_buffer.release()));
+
SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(memory_buffer)));
}
diag_buf->BeginSourceFile(m_compiler->getLangOpts(),
&m_compiler->getPreprocessor());
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits