diff options
author | chriseth <c@ethdev.com> | 2015-03-31 20:59:38 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-04-16 00:06:41 +0800 |
commit | 5216a9bc678597c0076b2e8615cac43c9077a95e (patch) | |
tree | ec2ec1dc821bfb0348458eaadf1b4336d7d609ad /LValue.cpp | |
parent | e1b20fb3a10f629aff172399c6e6111c941f931d (diff) | |
download | dexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.tar.gz dexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.tar.zst dexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.zip |
Some cleanup concerning byte arrays.
Diffstat (limited to 'LValue.cpp')
-rw-r--r-- | LValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -225,7 +225,8 @@ void StorageItem::setToZero(SourceLocation const&, bool _removeReference) const else if (m_dataType.getCategory() == Type::Category::Struct) { // stack layout: storage_key storage_offset - // @todo this can be improved for packed types + // @todo this can be improved: use StorageItem for non-value types, and just store 0 in + // all slots that contain value types later. auto const& structType = dynamic_cast<StructType const&>(m_dataType); for (auto const& member: structType.getMembers()) { @@ -245,7 +246,6 @@ void StorageItem::setToZero(SourceLocation const&, bool _removeReference) const else { solAssert(m_dataType.isValueType(), "Clearing of unsupported type requested: " + m_dataType.toString()); - // @todo actually use offset if (!_removeReference) CompilerUtils(m_context).copyToStackTop(sizeOnStack(), sizeOnStack()); if (m_dataType.getStorageBytes() == 32) |