File tree 3 files changed +4
-6
lines changed
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(
327
327
const auto alternatives =
328
328
pointer_type_selector.get_parameter_alternative_types (
329
329
function.name , p.get_identifier (), ns);
330
- if (! alternatives.has_value ())
330
+ if (alternatives.empty ())
331
331
{
332
332
main_arguments[param_number] = object_factory (
333
333
p.type (),
@@ -344,7 +344,6 @@ exprt::operandst java_build_arguments(
344
344
INVARIANT (!is_this, " We cannot have different types for `this` here" );
345
345
// create a non-deterministic switch between all possible values for the
346
346
// type of the parameter.
347
- const auto alternative_object_types = alternatives.value ();
348
347
code_switcht code_switch;
349
348
350
349
// the idea is to get a new symbol for the parameter value `tmp`
@@ -374,7 +373,7 @@ exprt::operandst java_build_arguments(
374
373
375
374
std::vector<codet> cases;
376
375
size_t alternative = 0 ;
377
- for (const auto &type : alternative_object_types )
376
+ for (const auto &type : alternatives )
378
377
{
379
378
code_blockt init_code_for_type;
380
379
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(
224
224
return inst_val;
225
225
}
226
226
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 (
229
228
const irep_idt &function_name,
230
229
const irep_idt ¶meter_name,
231
230
const namespacet &ns) const
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class select_pointer_typet
42
42
&generic_parameter_specialization_map,
43
43
const namespacet &ns) const ;
44
44
45
- virtual optionalt< std::set<symbol_typet> > get_parameter_alternative_types (
45
+ virtual std::set<symbol_typet> get_parameter_alternative_types (
46
46
const irep_idt &function_name,
47
47
const irep_idt ¶meter_name,
48
48
const namespacet &ns) const ;
You can’t perform that action at this time.
0 commit comments