[Lldb-commits] [lldb] r209807 - Fix build. Method was renamed in r209800.

Nikola Smiljanic popizdeh at gmail.com
Thu May 29 05:38:18 PDT 2014


Author: nikola
Date: Thu May 29 07:38:17 2014
New Revision: 209807

URL: http://llvm.org/viewvc/llvm-project?rev=209807&view=rev
Log:
Fix build. Method was renamed in r209800.

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

Modified: lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ASTResultSynthesizer.cpp?rev=209807&r1=209806&r2=209807&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ASTResultSynthesizer.cpp (original)
+++ lldb/trunk/source/Expression/ASTResultSynthesizer.cpp Thu May 29 07:38:17 2014
@@ -59,9 +59,6 @@ ASTResultSynthesizer::Initialize(ASTCont
 
 void
 ASTResultSynthesizer::TransformTopLevelDecl(Decl* D)
-{
-    Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
-
     if (NamedDecl *named_decl = dyn_cast<NamedDecl>(D))
     {
         if (log && log->GetVerbose())
@@ -364,7 +361,7 @@ ASTResultSynthesizer::SynthesizeBodyResu
                 
         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::SynthesizeBodyResu
     // replace the old statement with the new one
     //
     
-    *last_stmt_ptr = reinterpret_cast<Stmt*>(result_initialization_stmt_result.take());
+    *last_stmt_ptr = reinterpret_cast<Stmt*>(result_initialization_stmt_result.get());
 
     return true;
 }





More information about the lldb-commits mailing list