Skip to content

Commit fda0057

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,20 +650,20 @@ 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.
658658
static member_exprt
659-
to_member(const exprt &pointer, const exprt &fieldref, const namespacet &ns)
659+
to_member(const exprt &pointer, const exprt &field_reference, const namespacet &ns)
660660
{
661-
struct_tag_typet class_type(fieldref.get(ID_class));
661+
struct_tag_typet class_type(field_reference.get(ID_class));
662662

663663
const exprt typed_pointer =
664664
typecast_exprt::conditional_cast(pointer, java_reference_type(class_type));
665665

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

668668
exprt accessed_object = checked_dereference(typed_pointer, class_type);
669669

0 commit comments

Comments
 (0)