diff options
author | chriseth <chris@ethereum.org> | 2018-11-08 03:26:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 03:26:33 +0800 |
commit | deed8e21f6149a9712ebd77556cdb6e3b4b9c566 (patch) | |
tree | 300a55700b068709f36340563db1b43e5b8b1188 /libyul/optimiser/MainFunction.cpp | |
parent | 0a96f091ab63e8d77106e00590a442c59714eecb (diff) | |
parent | 674e17c2a895eff6729357d8c10db709ac368b79 (diff) | |
download | dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar.gz dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar.bz2 dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar.lz dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar.xz dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.tar.zst dexon-solidity-deed8e21f6149a9712ebd77556cdb6e3b4b9c566.zip |
Merge pull request #5334 from ethereum/stringPerformance
[Yul] String performance
Diffstat (limited to 'libyul/optimiser/MainFunction.cpp')
-rw-r--r-- | libyul/optimiser/MainFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libyul/optimiser/MainFunction.cpp b/libyul/optimiser/MainFunction.cpp index c8f35207..f3306598 100644 --- a/libyul/optimiser/MainFunction.cpp +++ b/libyul/optimiser/MainFunction.cpp @@ -40,12 +40,12 @@ void MainFunction::operator()(Block& _block) for (size_t i = 1; i < _block.statements.size(); ++i) assertThrow(_block.statements.at(i).type() == typeid(FunctionDefinition), OptimizerException, ""); /// @todo this should handle scopes properly and instead of an assertion it should rename the conflicting function - assertThrow(NameCollector(_block).names().count("main") == 0, OptimizerException, ""); + assertThrow(NameCollector(_block).names().count(YulString{"main"}) == 0, OptimizerException, ""); Block& block = boost::get<Block>(_block.statements[0]); FunctionDefinition main{ block.location, - "main", + YulString{"main"}, {}, {}, std::move(block) |