diff options
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(); }; |