[Lldb-commits] [lldb] r245397 - Fix LLDB after Clang r245346.

Richard Smith via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 18 18:05:35 PDT 2015


Author: rsmith
Date: Tue Aug 18 20:05:34 2015
New Revision: 245397

URL: http://llvm.org/viewvc/llvm-project?rev=245397&view=rev
Log:
Fix LLDB after Clang r245346.

The right thing to do here would be to give the ASTConsumer to the
CompilerInstance so it can set things up for us, but we can't do that
because we don't own it. So instead just initialize it ourselves.

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=245397&r1=245396&r2=245397&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Tue Aug 18 20:05:34 2015
@@ -410,6 +410,7 @@ ClangExpressionParser::Parse (Stream &st
     diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor());
 
     ASTConsumer *ast_transformer = m_expr.ASTTransformer(m_code_generator.get());
+    ast_transformer->Initialize(m_compiler->getASTContext());
 
     if (ClangExpressionDeclMap *decl_map = m_expr.DeclMap())
         decl_map->InstallCodeGenerator(m_code_generator.get());




More information about the lldb-commits mailing list