From b9f65d3234026d231b889abded407c4ae1e34286 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 15 May 2019 19:16:38 +0800 Subject: standalone_miri - Fix for MIR changes, fiddling with FFI --- tools/standalone_miri/module_tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/standalone_miri/module_tree.cpp') 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(::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(::std::move(path)) }); } else { LOG_BUG(p.lex << "BUG? " << p.lex.next()); -- cgit v1.2.3