Skip to content

Commit 724ed52

Browse files
klaaskarkhaz
klaas
authored andcommitted
Cleans up some loops to have braces
1 parent 6166221 commit 724ed52

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
@@ -174,7 +174,9 @@ void dep_graph_domaint::data_dependencies(
174174
{
175175
bool found=false;
176176
for(const auto &wr : w_range.second)
177+
{
177178
for(const auto &r_range : r_ranges)
179+
{
178180
if(!found &&
179181
may_be_def_use_pair(wr.first, wr.second,
180182
r_range.first, r_range.second))
@@ -183,6 +185,8 @@ void dep_graph_domaint::data_dependencies(
183185
data_deps.insert(w_range.first);
184186
found=true;
185187
}
188+
}
189+
}
186190
}
187191

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

0 commit comments

Comments
 (0)