File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ void dep_graph_domaint::data_dependencies(
163
163
164
164
forall_rw_range_set_r_objects (it, rw_set)
165
165
{
166
- const range_domaint &r_ranges= rw_set.get_ranges (it);
166
+ const range_domaint &r_ranges = rw_set.get_ranges (it-> second );
167
167
const rd_range_domaint::ranges_at_loct &w_ranges=
168
168
dep_graph.reaching_definitions ()[to].get (it->first );
169
169
Original file line number Diff line number Diff line change @@ -136,10 +136,11 @@ class rw_range_sett
136
136
return w_range_set;
137
137
}
138
138
139
- const range_domaint &get_ranges (objectst::const_iterator it) const
139
+ const range_domaint &
140
+ get_ranges (const std::unique_ptr<range_domain_baset> &ranges) const
140
141
{
141
- PRECONDITION (dynamic_cast <range_domaint*>(it-> second .get ())!= nullptr );
142
- return static_cast <const range_domaint &>(*it-> second );
142
+ PRECONDITION (dynamic_cast <range_domaint *>(ranges .get ()) != nullptr );
143
+ return static_cast <const range_domaint &>(*ranges );
143
144
}
144
145
145
146
enum class get_modet { LHS_W, READ };
@@ -360,11 +361,12 @@ class rw_guarded_range_set_value_sett:public rw_range_set_value_sett
360
361
{
361
362
}
362
363
363
- const guarded_range_domaint &get_ranges (objectst::const_iterator it) const
364
+ const guarded_range_domaint &
365
+ get_ranges (const std::unique_ptr<range_domain_baset> &ranges) const
364
366
{
365
367
PRECONDITION (
366
- dynamic_cast <guarded_range_domaint*>(it-> second .get ())!= nullptr );
367
- return static_cast <const guarded_range_domaint &>(*it-> second );
368
+ dynamic_cast <guarded_range_domaint *>(ranges .get ()) != nullptr );
369
+ return static_cast <const guarded_range_domaint &>(*ranges );
368
370
}
369
371
370
372
void get_objects_rec (
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ void rd_range_domaint::transform(
148
148
continue;
149
149
assert(symbol_ptr!=0);
150
150
151
- const range_domaint &ranges= rw_set.get_ranges(it);
151
+ const range_domaint &ranges = rw_set.get_ranges(it->second );
152
152
153
153
if(is_must_alias &&
154
154
(!rd->get_is_threaded()(from) ||
@@ -357,7 +357,7 @@ void rd_range_domaint::transform_assign(
357
357
nullptr_exceptiont,
358
358
" Symbol is in symbol table" );
359
359
360
- const range_domaint &ranges= rw_set.get_ranges (it);
360
+ const range_domaint &ranges = rw_set.get_ranges (it-> second );
361
361
362
362
if (is_must_alias &&
363
363
(!rd.get_is_threaded ()(from) ||
You can’t perform that action at this time.
0 commit comments