summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2023-05-01 18:34:18 +0200
committerTim Flynn <trflynn89@pm.me>2023-05-02 07:03:57 -0400
commitbe7bc414701193fd0f40ed5d01c020b9362bda82 (patch)
tree4e6674f67270982510b50454eb1d1f862a8b2f97
parent00b4976f2cd5b26e557ed4f5995bc64f64f2e664 (diff)
downloadserenity-be7bc414701193fd0f40ed5d01c020b9362bda82.zip
LibJS: Fix mix-up between assignment and comparison
-rw-r--r--Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}