diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-24 23:49:54 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-11-25 22:45:18 +0800 |
commit | 9d25b5601e6e2713e14803777390c2d45be3d51c (patch) | |
tree | a94a4f54a07d7a515191f91124f7c28ee5bdb2b6 /libsolidity | |
parent | 3fb9625127c869b3d5b4b8e590dc6feb52e4eeec (diff) | |
download | dexon-solidity-9d25b5601e6e2713e14803777390c2d45be3d51c.tar.gz dexon-solidity-9d25b5601e6e2713e14803777390c2d45be3d51c.tar.zst dexon-solidity-9d25b5601e6e2713e14803777390c2d45be3d51c.zip |
codegen: merge type conversion and cleaning up
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/codegen/LValue.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libsolidity/codegen/LValue.cpp b/libsolidity/codegen/LValue.cpp index df74e836..63729d27 100644 --- a/libsolidity/codegen/LValue.cpp +++ b/libsolidity/codegen/LValue.cpp @@ -233,8 +233,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc m_context << Instruction::DUP2 << Instruction::SWAP1; m_context << Instruction::SWAP1; - utils.convertType(_sourceType, _sourceType, true); - utils.convertType(*m_dataType, *m_dataType, true, true); + utils.convertType(_sourceType, *m_dataType, true); m_context << Instruction::SWAP1; m_context << Instruction::SSTORE; @@ -244,7 +243,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc if (_sourceType.sizeOnStack() == 1) { m_context << Instruction::SWAP2; - utils.convertType(_sourceType, _sourceType, true); + utils.convertType(_sourceType, *m_dataType, true); m_context << Instruction::SWAP2; } |