summaryrefslogtreecommitdiff
path: root/src/hir/expr_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/expr_ptr.hpp')
-rw-r--r--src/hir/expr_ptr.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hir/expr_ptr.hpp b/src/hir/expr_ptr.hpp
index 4ac4e86f..4060c551 100644
--- a/src/hir/expr_ptr.hpp
+++ b/src/hir/expr_ptr.hpp
@@ -28,7 +28,9 @@ public:
ExprPtr();
ExprPtr(::std::unique_ptr< ::HIR::ExprNode> _);
ExprPtr(ExprPtr&& x):
- node(x.node)
+ node(x.node),
+ m_bindings( ::std::move(x.m_bindings) ),
+ m_mir( ::std::move(x.m_mir) )
{
x.node = nullptr;
}
@@ -36,6 +38,8 @@ public:
{
this->~ExprPtr();
node = x.node;
+ m_bindings = ::std::move(x.m_bindings);
+ m_mir = ::std::move(x.m_mir);
x.node = nullptr;
return *this;
}