Skip to content

Commit 6a02889

Browse files
author
thk123
committed
Rename fieldref to clearer and lint-correct name
1 parent ecfcba6 commit 6a02889

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -650,20 +650,22 @@ static irep_idt get_if_cmp_operator(const irep_idt &stmt)
650650
/// Build a member exprt for accessing a specific field that may come from a
651651
/// base class.
652652
/// \param pointer: The expression to access the field on.
653-
/// \param fieldref: A getfield/setfield instruction produced by the bytecode
653+
/// \param field_reference: A getfield/setfield instruction produced by the bytecode
654654
/// parser.
655655
/// \param ns: Global namespace
656656
/// \return A member expression accessing the field, through base class
657657
/// components if necessary.
658-
static member_exprt
659-
to_member(const exprt &pointer, const exprt &fieldref, const namespacet &ns)
658+
static member_exprt to_member(
659+
const exprt &pointer,
660+
const exprt &field_reference,
661+
const namespacet &ns)
660662
{
661-
struct_tag_typet class_type(fieldref.get(ID_class));
663+
struct_tag_typet class_type(field_reference.get(ID_class));
662664

663665
const exprt typed_pointer =
664666
typecast_exprt::conditional_cast(pointer, java_reference_type(class_type));
665667

666-
const irep_idt &component_name = fieldref.get(ID_component_name);
668+
const irep_idt &component_name = field_reference.get(ID_component_name);
667669

668670
exprt accessed_object = checked_dereference(typed_pointer, class_type);
669671

0 commit comments

Comments
 (0)