mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename wasm::Break(If) to wasm::Branch(If) for clarity
This commit is contained in:
@@ -382,15 +382,15 @@ bytes BinaryTransform::operator()(Loop const& _loop)
|
||||
return result;
|
||||
}
|
||||
|
||||
bytes BinaryTransform::operator()(Break const& _break)
|
||||
bytes BinaryTransform::operator()(Branch const& _branch)
|
||||
{
|
||||
return toBytes(Opcode::Br) + encodeLabelIdx(_break.label.name);
|
||||
return toBytes(Opcode::Br) + encodeLabelIdx(_branch.label.name);
|
||||
}
|
||||
|
||||
bytes BinaryTransform::operator()(BreakIf const& _breakIf)
|
||||
bytes BinaryTransform::operator()(BranchIf const& _branchIf)
|
||||
{
|
||||
bytes result = std::visit(*this, *_breakIf.condition);
|
||||
result += toBytes(Opcode::BrIf) + encodeLabelIdx(_breakIf.label.name);
|
||||
bytes result = std::visit(*this, *_branchIf.condition);
|
||||
result += toBytes(Opcode::BrIf) + encodeLabelIdx(_branchIf.label.name);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user