diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-23 22:43:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-23 22:43:42 +0800 |
commit | 8220486a6af6abcc261810e7c35c7af8dbd0169b (patch) | |
tree | 4ff22c8e40692ab805cef8087c22be01590665d3 /src | |
parent | 117bef8914d2dcbce19e773fb847cfb5cb61f72c (diff) | |
download | mrust-8220486a6af6abcc261810e7c35c7af8dbd0169b.tar.gz |
MIR Check - (minor) fix re-use of variable name
Diffstat (limited to 'src')
-rw-r--r-- | src/mir/check_full.cpp | 4 |
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? } |