diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-29 17:05:36 +1100 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-29 17:05:36 +1100 |
commit | 27985de4e5c26a53fa330dcb8ed8dc6342681d31 (patch) | |
tree | 8aa6e242c5340314d188ad614cc785353ebf4eb9 /src/mir/cleanup.cpp | |
parent | dd89eb7acb16234a7a9f2b6e0aee4788024c0df6 (diff) | |
download | mrust-27985de4e5c26a53fa330dcb8ed8dc6342681d31.tar.gz |
MIR - Inline assembly in MIR
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index 5744a033..27410462 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -817,6 +817,12 @@ void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, (Drop, MIR_Cleanup_LValue(state, mutator, se.slot); ), + (Asm, + for(auto& v : se.inputs) + MIR_Cleanup_LValue(state, mutator, v.second); + for(auto& v : se.outputs) + MIR_Cleanup_LValue(state, mutator, v.second); + ), (Assign, MIR_Cleanup_LValue(state, mutator, se.dst); TU_MATCHA( (se.src), (re), |