mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use C++ user-defined literals for creating YulString constants.
This commit is contained in:
1 parent
e85c3428b4
commit
5ac7620045
8 files changed
+18
-13
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user