diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-05-15 19:16:38 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-05-15 19:16:38 +0800 |
commit | b9f65d3234026d231b889abded407c4ae1e34286 (patch) | |
tree | eac3565750dcf593708c972ea40b4954834278a4 /tools/standalone_miri/module_tree.cpp | |
parent | cee20b8f3ab7fd6eca9fddff712b899064d0536b (diff) | |
download | mrust-b9f65d3234026d231b889abded407c4ae1e34286.tar.gz |
standalone_miri - Fix for MIR changes, fiddling with FFI
Diffstat (limited to 'tools/standalone_miri/module_tree.cpp')
-rw-r--r-- | tools/standalone_miri/module_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/standalone_miri/module_tree.cpp b/tools/standalone_miri/module_tree.cpp index eb6b6b9e..984662fe 100644 --- a/tools/standalone_miri/module_tree.cpp +++ b/tools/standalone_miri/module_tree.cpp @@ -379,7 +379,7 @@ bool Parser::parse_one() else if( lex.next() == "::" || lex.next() == '<' ) { auto path = p.parse_path(); - lv = ::MIR::LValue( ::std::move(path) ); + lv = ::MIR::LValue( ::std::make_unique<HIR::Path>(::std::move(path)) ); } else { LOG_ERROR(lex << "Unexpected token in LValue - " << lex.next()); @@ -464,7 +464,7 @@ bool Parser::parse_one() else if( p.lex.consume_if("ADDROF") ) { auto path = p.parse_path(); - return ::MIR::Constant::make_ItemAddr({ ::std::move(path) }); + return ::MIR::Constant::make_ItemAddr({ ::std::make_unique<HIR::Path>(::std::move(path)) }); } else { LOG_BUG(p.lex << "BUG? " << p.lex.next()); |