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:
Yoichi Hirai 2016-10-18 14:17:49 +02:00
parent 0542df25df
commit d2470a3e39
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -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;