mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libyul: AST cleanup, eliminating dead Instruction AST type.
This commit is contained in:
@@ -171,12 +171,6 @@ wasm::Expression EWasmCodeTransform::operator()(Literal const& _literal)
|
||||
return wasm::Literal{uint64_t(value)};
|
||||
}
|
||||
|
||||
wasm::Expression EWasmCodeTransform::operator()(yul::Instruction const&)
|
||||
{
|
||||
yulAssert(false, "EVM instruction used for Wasm code generation.");
|
||||
return {};
|
||||
}
|
||||
|
||||
wasm::Expression EWasmCodeTransform::operator()(If const& _if)
|
||||
{
|
||||
return wasm::If{visit(*_if.condition), visit(_if.body.statements), {}};
|
||||
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
static std::string run(Dialect const& _dialect, yul::Block const& _ast);
|
||||
|
||||
public:
|
||||
wasm::Expression operator()(yul::Instruction const& _instruction);
|
||||
wasm::Expression operator()(yul::Literal const& _literal);
|
||||
wasm::Expression operator()(yul::Identifier const& _identifier);
|
||||
wasm::Expression operator()(yul::FunctionalInstruction const& _instr);
|
||||
|
||||
Reference in New Issue
Block a user