Skip to content

Commit c579bfe

Browse files
Avoid repeating check that will be done in called function
1 parent 842989b commit c579bfe

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

jbmc/src/java_bytecode/select_pointer_type.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,8 @@ pointer_typet select_pointer_typet::convert_pointer_type(
2020
&generic_parameter_specialization_map,
2121
const namespacet &) const
2222
{
23-
// if we have a map of generic parameters -> types and the pointer is
24-
// a generic parameter, specialize it with concrete types
25-
if(!generic_parameter_specialization_map.empty())
26-
{
27-
return specialize_generics(
28-
pointer_type, generic_parameter_specialization_map);
29-
}
30-
else
31-
{
32-
return pointer_type;
33-
}
23+
return specialize_generics(
24+
pointer_type, generic_parameter_specialization_map);
3425
}
3526

3627
pointer_typet select_pointer_typet::specialize_generics(

0 commit comments

Comments
 (0)