diff options
| author | Sean Callanan <scallanan@apple.com> | 2010-11-30 22:01:58 +0000 | 
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2010-11-30 22:01:58 +0000 | 
| commit | f5a998643c4fc5647cf8313abfad2cd3bf61ae97 (patch) | |
| tree | 37891ea5e36da0d3447f99fbfac680a6d3f94b3d | |
| parent | 6712251f41f91a99c9449a9b5d18baeefeb85717 (diff) | |
| download | bcm5719-llvm-f5a998643c4fc5647cf8313abfad2cd3bf61ae97.tar.gz bcm5719-llvm-f5a998643c4fc5647cf8313abfad2cd3bf61ae97.zip  | |
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.
llvm-svn: 120472
| -rw-r--r-- | lldb/source/Expression/ClangExpressionVariable.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionVariable.cpp b/lldb/source/Expression/ClangExpressionVariable.cpp index 6a78363c2be..a85bc249879 100644 --- a/lldb/source/Expression/ClangExpressionVariable.cpp +++ b/lldb/source/Expression/ClangExpressionVariable.cpp @@ -47,7 +47,8 @@ ClangExpressionVariable::DisableDataVars()  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())  | 

