[Lldb-commits] [lldb] r120472 - /lldb/trunk/source/Expression/ClangExpressionVariable.cpp

Sean Callanan scallanan at apple.com
Tue Nov 30 14:01:58 PST 2010


Author: spyffe
Date: Tue Nov 30 16:01:58 2010
New Revision: 120472

URL: http://llvm.org/viewvc/llvm-project?rev=120472&view=rev
Log:
Fixed a problem where m_register_info was not being
copied by the copy constructor for ClangExpressionVariable.
This meant that a NULL m_register_info wouldn't be
copied, and instead the field was uninitialized, potentially
confusing the materializer.

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

Modified: lldb/trunk/source/Expression/ClangExpressionVariable.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionVariable.cpp?rev=120472&r1=120471&r2=120472&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionVariable.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionVariable.cpp Tue Nov 30 16:01:58 2010
@@ -47,7 +47,8 @@
 ClangExpressionVariable::ClangExpressionVariable(const ClangExpressionVariable &rhs) :
     m_name(rhs.m_name),
     m_user_type(rhs.m_user_type),
-    m_store(rhs.m_store),
+    m_store(rhs.m_store),  
+    m_register_info(rhs.m_register_info),
     m_index(rhs.m_index)
 {
     if (rhs.m_parser_vars.get())





More information about the lldb-commits mailing list