diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp | |
parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) |
Notes
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp index 190eacaa2b62..a164d48ae3e0 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp @@ -30,8 +30,8 @@ ASTStructExtractor::ASTStructExtractor(ASTConsumer *passthrough, const char *struct_name, ClangFunctionCaller &function) : m_ast_context(nullptr), m_passthrough(passthrough), - m_passthrough_sema(nullptr), m_sema(nullptr), m_action(nullptr), - m_function(function), m_struct_name(struct_name) { + m_passthrough_sema(nullptr), m_sema(nullptr), m_function(function), + m_struct_name(struct_name) { if (!m_passthrough) return; @@ -170,7 +170,6 @@ void ASTStructExtractor::PrintStats() { void ASTStructExtractor::InitializeSema(Sema &S) { m_sema = &S; - m_action = reinterpret_cast<Action *>(m_sema); if (m_passthrough_sema) m_passthrough_sema->InitializeSema(S); @@ -178,7 +177,6 @@ void ASTStructExtractor::InitializeSema(Sema &S) { void ASTStructExtractor::ForgetSema() { m_sema = nullptr; - m_action = nullptr; if (m_passthrough_sema) m_passthrough_sema->ForgetSema(); |