Fix an invalid static cast in ClangExpressionParser.cpp

This was found by the green dragon sanitizer bot.

rdar://problem/48536644

Differential Revision: https://reviews.llvm.org/D59314

llvm-svn: 356090
This commit is contained in:
Adrian Prantl
2019-03-13 19:46:30 +00:00
parent 74a04e80c8
commit 7e34d78da1
16 changed files with 82 additions and 20 deletions

View File

@@ -39,8 +39,10 @@ using namespace lldb;
/// The name of the function, as used in the text.
//------------------------------------------------------------------
UtilityFunction::UtilityFunction(ExecutionContextScope &exe_scope,
const char *text, const char *name)
: Expression(exe_scope), m_execution_unit_sp(), m_jit_module_wp(),
const char *text, const char *name,
ExpressionKind kind)
: Expression(exe_scope, kind),
m_execution_unit_sp(), m_jit_module_wp(),
m_function_text(),
m_function_name(name) {}