diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-15 21:39:25 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-15 21:39:25 +0800 |
commit | 2ef7be5dc9f455e5dd9d8753aa34e2bb5db7f587 (patch) | |
tree | c2fca4958681af9aec6536864aacf8dc59386cf3 /src/hir/expr_ptr.hpp | |
parent | 0eab78b913d79d4a5f3ddc015f1b5dc5fd21266f (diff) | |
download | mrust-2ef7be5dc9f455e5dd9d8753aa34e2bb5db7f587.tar.gz |
HIR - Expression conversion progressing
Diffstat (limited to 'src/hir/expr_ptr.hpp')
-rw-r--r-- | src/hir/expr_ptr.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hir/expr_ptr.hpp b/src/hir/expr_ptr.hpp index 2804136b..ba53b58f 100644 --- a/src/hir/expr_ptr.hpp +++ b/src/hir/expr_ptr.hpp @@ -1,7 +1,7 @@ /* */ #pragma once - +#include <memory> namespace HIR { @@ -13,6 +13,12 @@ class ExprPtr public: ExprPtr(); + ExprPtr(::std::unique_ptr< ::HIR::ExprNode> _); + ExprPtr(ExprPtr&& x): + node(x.node) + { + x.node = nullptr; + } ~ExprPtr(); }; |