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(
163163
164164 forall_rw_range_set_r_objects (it, rw_set)
165165 {
166- const range_domaint &r_ranges= rw_set.get_ranges (it);
166+ const range_domaint &r_ranges = rw_set.get_ranges (it-> second );
167167 const rd_range_domaint::ranges_at_loct &w_ranges=
168168 dep_graph.reaching_definitions ()[to].get (it->first );
169169
Original file line number Diff line number Diff line change @@ -136,10 +136,11 @@ class rw_range_sett
136136 return w_range_set;
137137 }
138138
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
140141 {
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 );
143144 }
144145
145146 enum class get_modet { LHS_W, READ };
@@ -360,11 +361,12 @@ class rw_guarded_range_set_value_sett:public rw_range_set_value_sett
360361 {
361362 }
362363
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
364366 {
365367 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 );
368370 }
369371
370372 void get_objects_rec (
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ void rd_range_domaint::transform(
148148 continue;
149149 assert(symbol_ptr!=0);
150150
151- const range_domaint &ranges= rw_set.get_ranges(it);
151+ const range_domaint &ranges = rw_set.get_ranges(it->second );
152152
153153 if(is_must_alias &&
154154 (!rd->get_is_threaded()(from) ||
@@ -357,7 +357,7 @@ void rd_range_domaint::transform_assign(
357357 nullptr_exceptiont,
358358 " Symbol is in symbol table" );
359359
360- const range_domaint &ranges= rw_set.get_ranges (it);
360+ const range_domaint &ranges = rw_set.get_ranges (it-> second );
361361
362362 if (is_must_alias &&
363363 (!rd.get_is_threaded ()(from) ||
You can’t perform that action at this time.
0 commit comments