diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-03-11 16:48:58 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-03-11 16:48:58 +0800 |
commit | e96ea8fdc617fa699ade1bd950a265be519ec731 (patch) | |
tree | ea29ab5f7ac1952f7046dbf27202d2c30abaefb7 /src/mir/from_hir_match.cpp | |
parent | 499fc003610febe43c546db508b44ca6ec00beed (diff) | |
download | mrust-e96ea8fdc617fa699ade1bd950a265be519ec731.tar.gz |
MIR Gen Match - Fix bug in range handling
Diffstat (limited to 'src/mir/from_hir_match.cpp')
-rw-r--r-- | src/mir/from_hir_match.cpp | 3 |
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; } |