Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee839e9

Browse files
committed
YulStack: Use util::unreachable() instead of returning unnecessary values.
1 parent 94be070 commit ee839e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libyul/YulStack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ using namespace solidity;
4444
using namespace solidity::frontend;
4545
using namespace solidity::yul;
4646
using namespace solidity::langutil;
47+
using namespace solidity::util;
4748

4849
namespace
4950
{
@@ -257,8 +258,7 @@ MachineAssemblyObject YulStack::assemble(Machine _machine)
257258
case Machine::EVM:
258259
return assembleWithDeployed().first;
259260
}
260-
// unreachable
261-
return MachineAssemblyObject();
261+
unreachable();
262262
}
263263

264264
std::pair<MachineAssemblyObject, MachineAssemblyObject>

0 commit comments

Comments
 (0)