mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 00:51:02 +00:00
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. llvm-svn: 245397
This commit is contained in:
parent
df9e3c6fb0
commit
453930d7c3
@ -410,6 +410,7 @@ ClangExpressionParser::Parse (Stream &stream)
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user