Author: jmolenda
Date: Mon Mar 20 21:59:15 2017
New Revision: 298333

URL: http://llvm.org/viewvc/llvm-project?rev=298333&view=rev
Log:
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> 

Modified:
    lldb/trunk/source/Expression/LLVMUserExpression.cpp

Modified: lldb/trunk/source/Expression/LLVMUserExpression.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/LLVMUserExpression.cpp?rev=298333&r1=298332&r2=298333&view=diff
==============================================================================
--- lldb/trunk/source/Expression/LLVMUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/LLVMUserExpression.cpp Mon Mar 20 21:59:15 2017
@@ -49,6 +49,8 @@ LLVMUserExpression::LLVMUserExpression(E
                                        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),


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to