summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-08-23 22:43:10 +0800
committerJohn Hodge <tpg@mutabah.net>2017-08-23 22:43:42 +0800
commit8220486a6af6abcc261810e7c35c7af8dbd0169b (patch)
tree4ff22c8e40692ab805cef8087c22be01590665d3 /src
parent117bef8914d2dcbce19e773fb847cfb5cb61f72c (diff)
downloadmrust-8220486a6af6abcc261810e7c35c7af8dbd0169b.tar.gz
MIR Check - (minor) fix re-use of variable name
Diffstat (limited to 'src')
-rw-r--r--src/mir/check_full.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/check_full.cpp b/src/mir/check_full.cpp
index 1f86c40a..15fe8b33 100644
--- a/src/mir/check_full.cpp
+++ b/src/mir/check_full.cpp
@@ -381,8 +381,8 @@ namespace
void mark_from_state(const ValueStates& vss, const State& s) {
if(s.is_composite()) {
used.at(s.index-1) = true;
- for(const auto& s : vss.inner_states.at(s.index-1))
- mark_from_state(vss, s);
+ for(const auto& is : vss.inner_states.at(s.index-1))
+ mark_from_state(vss, is);
// TODO: Should this compact composites with all-equal inner states?
}