mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
LibJS: Migrate DeprecatedString to String
This changes BasicBlock's constructor and create().
This commit is contained in:
parent
4c915a9e67
commit
67566e5017
4 changed files with 14 additions and 12 deletions
|
@ -128,10 +128,10 @@ public:
|
|||
|
||||
[[nodiscard]] BasicBlock& current_block() { return *m_current_basic_block; }
|
||||
|
||||
BasicBlock& make_block(DeprecatedString name = {})
|
||||
BasicBlock& make_block(String name = {})
|
||||
{
|
||||
if (name.is_empty())
|
||||
name = DeprecatedString::number(m_next_block++);
|
||||
name = MUST(String::number(m_next_block++));
|
||||
auto block = BasicBlock::create(name);
|
||||
if (auto const* context = m_current_unwind_context) {
|
||||
if (context->handler().has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue