mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 18:28:14 +00:00
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:
parent
3c268af42f
commit
ab2dae0a9c
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user