aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/ObjectParser.cpp
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/ObjectParser.cpp
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/ObjectParser.cpp')
-rw-r--r--libyul/ObjectParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/ObjectParser.cpp b/libyul/ObjectParser.cpp
index ba19e099..5f1eadef 100644
--- a/libyul/ObjectParser.cpp
+++ b/libyul/ObjectParser.cpp
@@ -42,7 +42,7 @@ shared_ptr<Object> ObjectParser::parse(shared_ptr<Scanner> const& _scanner, bool
{
// Special case: Code-only form.
object = make_shared<Object>();
- object->name = YulString{"object"};
+ object->name = "object"_yulstring;
object->code = parseBlock();
if (!object->code)
return nullptr;