File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ exprt::operandst java_build_arguments(
327327 const auto alternatives =
328328 pointer_type_selector.get_parameter_alternative_types (
329329 function.name , p.get_identifier (), ns);
330- if (! alternatives.has_value ())
330+ if (alternatives.empty ())
331331 {
332332 main_arguments[param_number] = object_factory (
333333 p.type (),
@@ -344,7 +344,6 @@ exprt::operandst java_build_arguments(
344344 INVARIANT (!is_this, " We cannot have different types for `this` here" );
345345 // create a non-deterministic switch between all possible values for the
346346 // type of the parameter.
347- const auto alternative_object_types = alternatives.value ();
348347 code_switcht code_switch;
349348
350349 // the idea is to get a new symbol for the parameter value `tmp`
@@ -374,7 +373,7 @@ exprt::operandst java_build_arguments(
374373
375374 std::vector<codet> cases;
376375 size_t alternative = 0 ;
377- for (const auto &type : alternative_object_types )
376+ for (const auto &type : alternatives )
378377 {
379378 code_blockt init_code_for_type;
380379 exprt init_expr_for_parameter = object_factory (
Original file line number Diff line number Diff line change @@ -224,8 +224,7 @@ select_pointer_typet::get_recursively_instantiated_type(
224224 return inst_val;
225225}
226226
227- optionalt<std::set<symbol_typet>>
228- select_pointer_typet::get_parameter_alternative_types (
227+ std::set<symbol_typet> select_pointer_typet::get_parameter_alternative_types (
229228 const irep_idt &function_name,
230229 const irep_idt ¶meter_name,
231230 const namespacet &ns) const
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class select_pointer_typet
4242 &generic_parameter_specialization_map,
4343 const namespacet &ns) const ;
4444
45- virtual optionalt< std::set<symbol_typet> > get_parameter_alternative_types (
45+ virtual std::set<symbol_typet> get_parameter_alternative_types (
4646 const irep_idt &function_name,
4747 const irep_idt ¶meter_name,
4848 const namespacet &ns) const ;
You can’t perform that action at this time.
0 commit comments