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/LLVMUserExpression.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/LLVMUserExpression.cpp')
-rw-r--r-- | lldb/source/Expression/LLVMUserExpression.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Expression/LLVMUserExpression.cpp b/lldb/source/Expression/LLVMUserExpression.cpp index 6a9fd9ec8a1..6f5972b32bb 100644 --- a/lldb/source/Expression/LLVMUserExpression.cpp +++ b/lldb/source/Expression/LLVMUserExpression.cpp @@ -41,8 +41,10 @@ LLVMUserExpression::LLVMUserExpression(ExecutionContextScope &exe_scope, llvm::StringRef prefix, lldb::LanguageType language, ResultType desired_type, - const EvaluateExpressionOptions &options) - : UserExpression(exe_scope, expr, prefix, language, desired_type, options), + const EvaluateExpressionOptions &options, + ExpressionKind kind) + : UserExpression(exe_scope, expr, prefix, language, desired_type, options, + kind), m_stack_frame_bottom(LLDB_INVALID_ADDRESS), m_stack_frame_top(LLDB_INVALID_ADDRESS), m_allow_cxx(false), m_allow_objc(false), m_transformed_text(), m_execution_unit_sp(), |