Check that there is an interface type before querying validity of location.

This commit is contained in:
Kamil Śliwak
2021-02-24 11:22:40 +01:00
committed by chriseth
parent 58e0977647
commit e87cd0afdf
4 changed files with 25 additions and 2 deletions
+2
View File
@@ -769,6 +769,8 @@ public:
bool isPointer() const;
/// @returns true if this is valid to be stored in data location _loc
/// The function mostly checks sizes. For calldata, this should only be called
/// if the type has an interfaceType.
virtual BoolResult validForLocation(DataLocation _loc) const = 0;
bool operator==(ReferenceType const& _other) const