diff options
author | Christian <c@ethdev.com> | 2014-12-10 19:51:26 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-10 19:51:26 +0800 |
commit | 5edffeba19192c2fc8683e8e683cf5bbc261e28b (patch) | |
tree | 9b82cdb01fb38abf7a13fb7fe09b5af74b4b8012 /CompilerUtils.h | |
parent | 35d5b28faeee5e19d0dbbeb3c75454249d636abd (diff) | |
download | dexon-solidity-5edffeba19192c2fc8683e8e683cf5bbc261e28b.tar.gz dexon-solidity-5edffeba19192c2fc8683e8e683cf5bbc261e28b.tar.zst dexon-solidity-5edffeba19192c2fc8683e8e683cf5bbc261e28b.zip |
Take variable stack size correctly into account for return value packer.
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r-- | CompilerUtils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h index 2aac7e4e..4da53375 100644 --- a/CompilerUtils.h +++ b/CompilerUtils.h @@ -37,6 +37,8 @@ public: /// Moves the value that is at the top of the stack to a stack variable. void moveToStackVariable(VariableDeclaration const& _variable); + /// Copies a variable of type @a _type from a stack depth of @a _stackDepth to the top of the stack. + void copyToStackTop(unsigned _stackDepth, Type const& _type); /// Removes the current value from the top of the stack. void popStackElement(Type const& _type); |