Skip to content

Commit ab2dae0

Browse files
committed
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
1 parent 3c268af commit ab2dae0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Expression/LLVMUserExpression.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ LLVMUserExpression::LLVMUserExpression(ExecutionContextScope &exe_scope,
4949
const EvaluateExpressionOptions &options)
5050
: UserExpression(exe_scope, expr, prefix, language, desired_type, options),
5151
m_stack_frame_bottom(LLDB_INVALID_ADDRESS),
52+
m_allow_cxx(false),
53+
m_allow_objc(false),
5254
m_stack_frame_top(LLDB_INVALID_ADDRESS), m_transformed_text(),
5355
m_execution_unit_sp(), m_materializer_ap(), m_jit_module_wp(),
5456
m_enforce_valid_object(true), m_in_cplusplus_method(false),

0 commit comments

Comments
 (0)