1
Fork 0
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:
Nick Hawke 2023-10-26 23:57:51 -04:00 committed by Andreas Kling
parent 4c915a9e67
commit 67566e5017
4 changed files with 14 additions and 12 deletions

View file

@ -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())