Use C++ user-defined literals for creating YulString constants.

This commit is contained in:
Daniel Kirchner committed 2018-12-12 18:45:43 +01:00
1 parent e85c3428b4
commit 5ac7620045
8 files changed
+18 -13

No files matched your search

+1 -1
View File
@@ -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;