diff options
author | John Hodge <tpg@mutabah.net> | 2017-01-22 15:29:33 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-01-22 15:29:33 +0800 |
commit | 8915d8666fc1a73391fc7cd69c9af66152217f42 (patch) | |
tree | 85e6b8611df182d6c2c4c4a01c47cb53b8ccb8ed | |
parent | 19ac6598a93236f2e288944cff319f75b6dc4f11 (diff) | |
download | mrust-8915d8666fc1a73391fc7cd69c9af66152217f42.tar.gz |
MIR Check - Calls move values
-rw-r--r-- | src/mir/check.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/check.cpp b/src/mir/check.cpp index 31734ef5..082dad7c 100644 --- a/src/mir/check.cpp +++ b/src/mir/check.cpp @@ -470,7 +470,7 @@ void MIR_Validate(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path if( e.fcn.is_Value() ) val_state.ensure_valid( state, e.fcn.as_Value() ); for(const auto& arg : e.args) - val_state.ensure_valid( state, arg ); + val_state.move_val( state, arg ); // Push blocks (with return valid only in one) add_to_visit(e.panic_block, path, val_state); |