diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-14 11:49:00 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-14 11:49:00 +0800 |
commit | 0e3a06a5ab363980a8362f346ee44876fc163936 (patch) | |
tree | 4d1f79b3a4b1c2eeecae30816e7f670c45c5a8bf /src/hir/expr_ptr.hpp | |
parent | 804131d8c57d11cc58f9be6b6b11d1a547c619f6 (diff) | |
download | mrust-0e3a06a5ab363980a8362f346ee44876fc163936.tar.gz |
HIR Expand Closures - Store local binding types
Diffstat (limited to 'src/hir/expr_ptr.hpp')
-rw-r--r-- | src/hir/expr_ptr.hpp | 6 |
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; } |