diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode/Label.h')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Label.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Label.h b/Userland/Libraries/LibJS/Bytecode/Label.h index 8174463f6e..b1634b1d0d 100644 --- a/Userland/Libraries/LibJS/Bytecode/Label.h +++ b/Userland/Libraries/LibJS/Bytecode/Label.h @@ -14,14 +14,14 @@ namespace JS::Bytecode { class Label { public: explicit Label(BasicBlock const& block) - : m_block(block) + : m_block(&block) { } - auto& block() const { return m_block; } + auto& block() const { return *m_block; } private: - BasicBlock const& m_block; + BasicBlock const* m_block { nullptr }; }; } |