libyul: AST cleanup, eliminating dead Instruction AST type.

This commit is contained in:
Christian Parpart
2019-11-01 12:32:25 +01:00
parent 42b8c98567
commit 112e63fe15
12 changed files with 3 additions and 37 deletions
-6
View File
@@ -30,12 +30,6 @@ using namespace std;
using namespace dev;
using namespace yul;
Statement ASTCopier::operator()(Instruction const&)
{
assertThrow(false, OptimizerException, "Invalid operation.");
return {};
}
Statement ASTCopier::operator()(ExpressionStatement const& _statement)
{
return ExpressionStatement{ _statement.location, translate(_statement.expression) };