diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2017-05-14 12:58:00 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2017-05-14 12:58:00 +0800 |
commit | 7a267995c7cfd6b68849079dc4ecae4ebe74e6fa (patch) | |
tree | 50f10513cb0922c2255e72174fe9c217a47007fd /src/mir/from_hir_match.cpp | |
parent | 39ccbcf7e5596ca791d8616b678d1a13ebbb1af4 (diff) | |
download | mrust-7a267995c7cfd6b68849079dc4ecae4ebe74e6fa.tar.gz |
Visual Studio compile fixes
Diffstat (limited to 'src/mir/from_hir_match.cpp')
-rw-r--r-- | src/mir/from_hir_match.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mir/from_hir_match.cpp b/src/mir/from_hir_match.cpp index 46331ca6..a68fd1bf 100644 --- a/src/mir/from_hir_match.cpp +++ b/src/mir/from_hir_match.cpp @@ -2240,22 +2240,6 @@ int MIR_LowerHIR_Match_Simple__GeneratePattern(MirBuilder& builder, const Span& ), (Array, TODO(sp, "Match directly on array?"); - #if 0 - unsigned int total = 0; - for( unsigned int i = 0; i < te.size_val; i ++ ) { - unsigned int cnt = MIR_LowerHIR_Match_Simple__GeneratePattern( - builder, sp, - rules, num_rules, *te.inner, - ::MIR::LValue::make_Field({ box$(match_val.clone()), i }), - fail_bb - ); - total += cnt; - rules += cnt; - num_rules -= cnt; - if( num_rules == 0 ) - return total; - } - #endif ), (Slice, ASSERT_BUG(sp, rule.is_Slice() || rule.is_SplitSlice() || (rule.is_Value() && rule.as_Value().is_Bytes()), "Can only match slice with Bytes or Slice rules - " << rule); |