diff options
author | chriseth <chris@ethereum.org> | 2018-12-17 21:07:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 21:07:24 +0800 |
commit | bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679 (patch) | |
tree | c3c9d4ed59cbedb402269358ecab0cac41a4e414 /libyul/backends/evm/EVMCodeTransform.cpp | |
parent | bc85a8915f0cc8214a8b5a4be2410ac935532fa3 (diff) | |
parent | 5ac7620045012c2ed565b81978dc35f5f83f7eea (diff) | |
download | dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.tar.gz dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.tar.zst dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.zip |
Merge pull request #5613 from ethereum/yulStringLiterals
[Yul] Use C++ user-defined literals for creating YulString constants.
Diffstat (limited to 'libyul/backends/evm/EVMCodeTransform.cpp')
-rw-r--r-- | libyul/backends/evm/EVMCodeTransform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/backends/evm/EVMCodeTransform.cpp b/libyul/backends/evm/EVMCodeTransform.cpp index bd18985c..04dc5040 100644 --- a/libyul/backends/evm/EVMCodeTransform.cpp +++ b/libyul/backends/evm/EVMCodeTransform.cpp @@ -387,7 +387,7 @@ void CodeTransform::operator()(Literal const& _literal) m_assembly.appendConstant(u256(_literal.value.str())); else if (_literal.kind == LiteralKind::Boolean) { - if (_literal.value.str() == "true") + if (_literal.value == "true"_yulstring) m_assembly.appendConstant(u256(1)); else m_assembly.appendConstant(u256(0)); |