From c4e88b3c49736e71534c918a83956885c052beb8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 6 Jul 2017 16:29:30 +0800 Subject: MIR - Add (but don't use) a SwitchValue terminator --- src/mir/cleanup.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mir/cleanup.cpp') diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index 3dda81dc..f26f2bdd 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -1103,6 +1103,9 @@ void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, (Switch, MIR_Cleanup_LValue(state, mutator, e.val); ), + (SwitchValue, + MIR_Cleanup_LValue(state, mutator, e.val); + ), (Call, MIR_Cleanup_LValue(state, mutator, e.ret_val); if( e.fcn.is_Value() ) { -- cgit v1.2.3