mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
super
's size on stack is zero, because the expression compiler does not push an address.
This is different from `this`, which is translated to `ADDRESS` instruction.
This commit is contained in:
parent
0542df25df
commit
d2470a3e39
@ -623,6 +623,7 @@ public:
|
||||
}
|
||||
virtual unsigned storageBytes() const override { return 20; }
|
||||
virtual bool canLiveOutsideStorage() const override { return true; }
|
||||
virtual unsigned sizeOnStack() const override { return m_super ? 0 : 1; }
|
||||
virtual bool isValueType() const override { return true; }
|
||||
virtual std::string toString(bool _short) const override;
|
||||
virtual std::string canonicalName(bool _addDataLocation) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user