Fixed a bug where ClangExpressionVariableList was
storing pointers to objects inside a std::vector.
These objects can move around as the std::vector
changes, invalidating the pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112527 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionVariable.cpp b/source/Expression/ClangExpressionVariable.cpp
index d41e620..d576578 100644
--- a/source/Expression/ClangExpressionVariable.cpp
+++ b/source/Expression/ClangExpressionVariable.cpp
@@ -133,7 +133,9 @@
ClangExpressionVariable::ClangExpressionVariable(const ClangExpressionVariable &cev) :
m_name(cev.m_name),
- m_user_type(cev.m_user_type)
+ m_user_type(cev.m_user_type),
+ m_store(cev.m_store),
+ m_index(cev.m_index)
{
if (cev.m_parser_vars.get())
{