aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/backends/evm
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-12-10 11:25:51 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-12-13 01:45:43 +0800
commit5ac7620045012c2ed565b81978dc35f5f83f7eea (patch)
tree349169b91c08264dbc7c5e831ceecd6577adf3e8 /libyul/backends/evm
parente85c3428b483192e8e3d4255d619f31a48c08bef (diff)
downloaddexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.gz
dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.zst
dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.zip
Use C++ user-defined literals for creating YulString constants.
Diffstat (limited to 'libyul/backends/evm')
-rw-r--r--libyul/backends/evm/EVMCodeTransform.cpp2
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));