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.
Description
In this fragment of the code someone probably tried to compare types ignoring location and
isPointer, but looking at theequalsfunction implementation it does not compare full type, but only location andisPointer. So this assert is useless.It was changed by this commit. Previously it
equalswas== operatorand 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.