summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-03-11 16:48:58 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-03-11 16:48:58 +0800
commite96ea8fdc617fa699ade1bd950a265be519ec731 (patch)
treeea29ab5f7ac1952f7046dbf27202d2c30abaefb7
parent499fc003610febe43c546db508b44ca6ec00beed (diff)
downloadmrust-e96ea8fdc617fa699ade1bd950a265be519ec731.tar.gz
MIR Gen Match - Fix bug in range handling
-rw-r--r--src/mir/from_hir_match.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mir/from_hir_match.cpp b/src/mir/from_hir_match.cpp
index e08cd5f7..8236221b 100644
--- a/src/mir/from_hir_match.cpp
+++ b/src/mir/from_hir_match.cpp
@@ -2365,8 +2365,7 @@ namespace
//assert(it->first.start == ve_start);
assert((it->first.end) < ve_end);
- if( it->first.start != it->first.end )
- and_then(it->second);
+ and_then(it->second);
ve_start = it->first.end + 1;
++ it;
}