diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-03-13 19:46:30 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-03-13 19:46:30 +0000 |
commit | 7e34d78da1a004072153fc8fe73ce18ba4e493a8 (patch) | |
tree | f7ba5c7189253701e015faa23a57f5bf6393324a /lldb/source/Expression/UtilityFunction.cpp | |
parent | 74a04e80c86cfe4b7e138b01fb0a0efd9b1ea5a2 (diff) | |
download | bcm5719-llvm-7e34d78da1a004072153fc8fe73ce18ba4e493a8.tar.gz bcm5719-llvm-7e34d78da1a004072153fc8fe73ce18ba4e493a8.zip |
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
Diffstat (limited to 'lldb/source/Expression/UtilityFunction.cpp')
-rw-r--r-- | lldb/source/Expression/UtilityFunction.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Expression/UtilityFunction.cpp b/lldb/source/Expression/UtilityFunction.cpp index 550697e4850..7c83930ebe2 100644 --- a/lldb/source/Expression/UtilityFunction.cpp +++ b/lldb/source/Expression/UtilityFunction.cpp @@ -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) {} |