From 8220486a6af6abcc261810e7c35c7af8dbd0169b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 23 Aug 2017 22:43:10 +0800 Subject: MIR Check - (minor) fix re-use of variable name --- src/mir/check_full.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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? } -- cgit v1.2.3