From 2882a12337184e3fa9b0a3341b294ab27f760832 Mon Sep 17 00:00:00 2001 From: Nikola Smiljanic Date: Thu, 29 May 2014 12:38:17 +0000 Subject: [PATCH] Fix build. Method was renamed in r209800. llvm-svn: 209807 --- lldb/source/Expression/ASTResultSynthesizer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp index 76c2577..f118943 100644 --- a/lldb/source/Expression/ASTResultSynthesizer.cpp +++ b/lldb/source/Expression/ASTResultSynthesizer.cpp @@ -59,9 +59,6 @@ ASTResultSynthesizer::Initialize(ASTContext &Context) void ASTResultSynthesizer::TransformTopLevelDecl(Decl* D) -{ - Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS)); - if (NamedDecl *named_decl = dyn_cast(D)) { if (log && log->GetVerbose()) @@ -364,7 +361,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body, ExprResult address_of_expr = m_sema->CreateBuiltinUnaryOp(SourceLocation(), UO_AddrOf, last_expr); - m_sema->AddInitializerToDecl(result_decl, address_of_expr.take(), true, false); + m_sema->AddInitializerToDecl(result_decl, address_of_expr.get(), true, false); } else { @@ -413,7 +410,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body, // replace the old statement with the new one // - *last_stmt_ptr = reinterpret_cast(result_initialization_stmt_result.take()); + *last_stmt_ptr = reinterpret_cast(result_initialization_stmt_result.get()); return true; } -- 2.7.4