diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-22 11:06:06 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-22 11:06:06 +0800 |
commit | 61ab3297ad8d15c38618e031cbcff423b225a4ef (patch) | |
tree | 334e9741695ff8e3db98bafa5982a4078f7145dc /src/mir/from_hir.cpp | |
parent | a23686aa222162d95c4dc0a209499fe7dd5ef5a4 (diff) | |
download | mrust-61ab3297ad8d15c38618e031cbcff423b225a4ef.tar.gz |
MIR Gen - Move and drop detection improved
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index b28bd0c8..2a5c50c2 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -962,7 +962,7 @@ namespace { m_builder.set_cur_block( arm_continue ); } - m_builder.set_result( node.span(), ::MIR::LValue::make_Index({ box$(index), box$(value) }) ); + m_builder.set_result( node.span(), ::MIR::LValue::make_Index({ box$(value), box$(index) }) ); } void visit(::HIR::ExprNode_Deref& node) override |