From ba01d5f92e49e27b5e43810f7181cd5286b326c2 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Wed, 15 Apr 2026 23:40:18 -0400 Subject: [PATCH] Issue #3049 - Fix switch scoping in minimal LoongArch JIT --- js/src/jit/LoongArchMinimalJit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/jit/LoongArchMinimalJit.cpp b/js/src/jit/LoongArchMinimalJit.cpp index 6fe6b0cfda..68b2999b73 100644 --- a/js/src/jit/LoongArchMinimalJit.cpp +++ b/js/src/jit/LoongArchMinimalJit.cpp @@ -444,13 +444,14 @@ class MinimalLoongArchCompiler if (!duplicateTop()) return false; break; - case JSOP_SWAP: + case JSOP_SWAP: { if (stackDepth_ < 2) return false; LoongArchReg tmp = stack_[stackDepth_ - 1]; stack_[stackDepth_ - 1] = stack_[stackDepth_ - 2]; stack_[stackDepth_ - 2] = tmp; break; + } case JSOP_TONUMERIC: case JSOP_CHECKLEXICAL: case JSOP_LOOPENTRY: