diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-07-06 16:29:30 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-07-06 16:29:30 +0800 |
commit | c4e88b3c49736e71534c918a83956885c052beb8 (patch) | |
tree | ec829a8e30c2242cf3ac964b5edc473f2af06db7 /src/mir/cleanup.cpp | |
parent | 3afff6d92dd9806a6dc1e86e3dbdbf56577c6a8a (diff) | |
download | mrust-c4e88b3c49736e71534c918a83956885c052beb8.tar.gz |
MIR - Add (but don't use) a SwitchValue terminator
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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() ) { |