Skip to content

Commit 66c662f

Browse files
klaaskarkhaz
klaas
authored andcommitted
Cleans up some loops to have braces
1 parent dc4ffae commit 66c662f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/analyses/dependence_graph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ void dep_graph_domaint::data_dependencies(
176176
{
177177
bool found=false;
178178
for(const auto &wr : w_range.second)
179+
{
179180
for(const auto &r_range : r_ranges)
181+
{
180182
if(!found &&
181183
may_be_def_use_pair(wr.first, wr.second,
182184
r_range.first, r_range.second))
@@ -185,6 +187,8 @@ void dep_graph_domaint::data_dependencies(
185187
data_deps.insert(w_range.first);
186188
found=true;
187189
}
190+
}
191+
}
188192
}
189193

190194
dep_graph.reaching_definitions()[to].clear_cache(it->first);

0 commit comments

Comments
 (0)