Skip to content

ReferenceType::equals(ReferenceType const& _other) name is misleading. #17041

Description

@rodiazet

Description

In this fragment of the code someone probably tried to compare types ignoring location and isPointer, but looking at the equals function implementation it does not compare full type, but only location and isPointer. So this assert is useless.

It was changed by this commit. Previously it equals was == operator and it did the same.

This function usage should be verified and the name should be changed. It’s used in a couple of places in YulUtilFunctions.cpp.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛low effortThere is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.must haveSomething we consider an essential part of Solidity 1.0.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions