diff options
author | chriseth <c@ethdev.com> | 2016-03-03 23:56:22 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-03-03 23:57:23 +0800 |
commit | 05d30fc7cf58ef57238295559aac709338e3c4ea (patch) | |
tree | bae666e3d399f3fe60e6524846807e1c52eb73cb /SemanticInformation.cpp | |
parent | 96ea3c63f3edc6058d74cfa77828e900c9e9cb6d (diff) | |
download | dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar.gz dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar.bz2 dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar.lz dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar.xz dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.tar.zst dexon-solidity-05d30fc7cf58ef57238295559aac709338e3c4ea.zip |
Add delegatecall to the optimizer.
Diffstat (limited to 'SemanticInformation.cpp')
-rw-r--r-- | SemanticInformation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SemanticInformation.cpp b/SemanticInformation.cpp index 309bbe2b..ea579b83 100644 --- a/SemanticInformation.cpp +++ b/SemanticInformation.cpp @@ -134,6 +134,7 @@ bool SemanticInformation::isDeterministic(AssemblyItem const& _item) { case Instruction::CALL: case Instruction::CALLCODE: + case Instruction::DELEGATECALL: case Instruction::CREATE: case Instruction::GAS: case Instruction::PC: @@ -157,6 +158,7 @@ bool SemanticInformation::invalidatesMemory(Instruction _instruction) case Instruction::MSTORE8: case Instruction::CALL: case Instruction::CALLCODE: + case Instruction::DELEGATECALL: return true; default: return false; @@ -169,6 +171,7 @@ bool SemanticInformation::invalidatesStorage(Instruction _instruction) { case Instruction::CALL: case Instruction::CALLCODE: + case Instruction::DELEGATECALL: case Instruction::CREATE: case Instruction::SSTORE: return true; |