diff options
author | chriseth <chris@ethereum.org> | 2018-06-04 22:10:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 22:10:56 +0800 |
commit | c59a06bb97081f95885ce7c0c076d4290c26cd38 (patch) | |
tree | 428ba950791db68954151ba43ca649fedd8fafa6 /libsolidity | |
parent | 0a074d8494cd927c523a3fc164fff98acbda2dd3 (diff) | |
parent | 4b7e58f22fbac413b8f182cfdd5df9fdf1efd674 (diff) | |
download | dexon-solidity-c59a06bb97081f95885ce7c0c076d4290c26cd38.tar.gz dexon-solidity-c59a06bb97081f95885ce7c0c076d4290c26cd38.tar.zst dexon-solidity-c59a06bb97081f95885ce7c0c076d4290c26cd38.zip |
Merge pull request #4213 from ethereum/fixpop
Fix bug related to byte array pop.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 7f5ec46a..eb56e8ae 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2529,6 +2529,7 @@ string FunctionType::richIdentifier() const case Kind::AddMod: id += "addmod"; break; case Kind::MulMod: id += "mulmod"; break; case Kind::ArrayPush: id += "arraypush"; break; + case Kind::ArrayPop: id += "arraypop"; break; case Kind::ByteArrayPush: id += "bytearraypush"; break; case Kind::ObjectCreation: id += "objectcreation"; break; case Kind::Assert: id += "assert"; break; @@ -2683,6 +2684,7 @@ unsigned FunctionType::sizeOnStack() const case Kind::BareDelegateCall: case Kind::Internal: case Kind::ArrayPush: + case Kind::ArrayPop: case Kind::ByteArrayPush: size = 1; break; |