mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add some asserts to WasmCodeTransform
This commit is contained in:
parent
e872b1b51e
commit
fdf68a9525
@ -275,11 +275,13 @@ wasm::Expression WasmCodeTransform::operator()(ForLoop const& _for)
|
||||
|
||||
wasm::Expression WasmCodeTransform::operator()(Break const&)
|
||||
{
|
||||
yulAssert(m_breakContinueLabelNames.size() > 0, "");
|
||||
return wasm::Branch{wasm::Label{m_breakContinueLabelNames.top().first}};
|
||||
}
|
||||
|
||||
wasm::Expression WasmCodeTransform::operator()(Continue const&)
|
||||
{
|
||||
yulAssert(m_breakContinueLabelNames.size() > 0, "");
|
||||
return wasm::Branch{wasm::Label{m_breakContinueLabelNames.top().second}};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user