From 83b9e560df97f054dc2ea0660cda3fb55cd274d7 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Apr 2017 13:31:07 +0800 Subject: MIR - Add ScopeEnd statement to indicate where a value will no longer be used --- src/mir/cleanup.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mir/cleanup.cpp') diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index 6516dd60..17dca948 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -932,6 +932,8 @@ void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, ), (SetDropFlag, ), + (ScopeEnd, + ), (Asm, for(auto& v : se.inputs) MIR_Cleanup_LValue(state, mutator, v.second); -- cgit v1.2.3