diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-04 12:33:35 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-04 12:33:35 +0800 |
commit | e33d210a4a85e91abe04f1874f460b6e60c6b5e0 (patch) | |
tree | 96668e07ac5972f3f25b1a5369831a0edea3ea35 /src/hir/expr_ptr.cpp | |
parent | ef9d2edb3752a19b827240e91ef3fea7bc354586 (diff) | |
download | mrust-e33d210a4a85e91abe04f1874f460b6e60c6b5e0.tar.gz |
Byte string literals in AST, infrastructure for coercions
Diffstat (limited to 'src/hir/expr_ptr.cpp')
-rw-r--r-- | src/hir/expr_ptr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hir/expr_ptr.cpp b/src/hir/expr_ptr.cpp index c8136097..dc20f84c 100644 --- a/src/hir/expr_ptr.cpp +++ b/src/hir/expr_ptr.cpp @@ -15,3 +15,9 @@ { delete node; } +::std::unique_ptr< ::HIR::ExprNode> HIR::ExprPtr::into_unique() +{ + ::std::unique_ptr< ::HIR::ExprNode> rv( this->node ); + this->node = nullptr; + return rv; +} |