Initialize m_allow_cxx, m_allow_objc. These ivars in the base class are not

initialized in the ctor and they're only initialized to 'true' in ClangUserExpression.cpp
when specific languages are detected so we can use uninitialized values.  This
bug has been present since the ivars were added in r144042.
<rdar://problem/31105864> 

llvm-svn: 298333
This commit is contained in:
Jason Molenda 2017-03-21 02:59:15 +00:00
parent 3c268af42f
commit ab2dae0a9c
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ LLVMUserExpression::LLVMUserExpression(ExecutionContextScope &exe_scope,
const EvaluateExpressionOptions &options)
: UserExpression(exe_scope, expr, prefix, language, desired_type, options),
m_stack_frame_bottom(LLDB_INVALID_ADDRESS),
m_allow_cxx(false),
m_allow_objc(false),
m_stack_frame_top(LLDB_INVALID_ADDRESS), m_transformed_text(),
m_execution_unit_sp(), m_materializer_ap(), m_jit_module_wp(),
m_enforce_valid_object(true), m_in_cplusplus_method(false),