From be7bc414701193fd0f40ed5d01c020b9362bda82 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Mon, 1 May 2023 18:34:18 +0200 Subject: [PATCH] LibJS: Fix mix-up between assignment and comparison --- Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp b/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp index 42279bef2a..a708cb6d0c 100644 --- a/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp @@ -135,7 +135,7 @@ static void generate_cfg_for_block(BasicBlock const& current_block, PassPipeline generate_cfg_for_block(*block, executable); } } else { - VERIFY(unwind_frames.last() = &frame); + VERIFY(unwind_frames.last() == &frame); unwind_frames.take_last(); VERIFY(frame.finalizer_targets.is_empty()); }