diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-18 13:24:43 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-18 13:24:43 +0800 |
commit | 48658d1621851fc1cda5fff397cfc380c0757b8e (patch) | |
tree | 7fbbc07b126982ce22f4be265ed08d21d86c139b /src/mir/from_hir.cpp | |
parent | 747bc2627450e8dc1bc04fb4e48e69a44cd5dd36 (diff) | |
download | mrust-48658d1621851fc1cda5fff397cfc380c0757b8e.tar.gz |
MIR Gen - Ensure that function return values are dropped
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 98d339e3..f014961a 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -1452,6 +1452,8 @@ namespace { } else { + // NOTE: This has to be done here because the builder can't easily do it. + m_builder.mark_value_assigned(node.span(), res); } m_builder.set_result( node.span(), mv$(res) ); } |