]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
DynASM/PPC: Fix shadowed variable.
authorMike Pall <mike>
Thu, 10 Jan 2019 11:28:24 +0000 (12:28 +0100)
committerMike Pall <mike>
Thu, 10 Jan 2019 11:28:24 +0000 (12:28 +0100)
Cleanup only, bug cannot trigger.
Thanks to Domingo Alvarez Duarte.

dynasm/dasm_ppc.lua

index 4e1656e3c4e3b4aa49b756d53ce140a4c4b99b54..77031fb2d846aa4d27655eb46879fe82ad66ce38 100644 (file)
@@ -1056,9 +1056,9 @@ map_op[".template__"] = function(params, template, nparams)
     elseif p == "M" then
       op = op + parse_shiftmask(params[n], false); n = n + 1
     elseif p == "J" or p == "K" then
-      local mode, n, s = parse_label(params[n], false)
-      if p == "K" then n = n + 2048 end
-      waction("REL_"..mode, n, s, 1)
+      local mode, m, s = parse_label(params[n], false)
+      if p == "K" then m = m + 2048 end
+      waction("REL_"..mode, m, s, 1)
       n = n + 1
     elseif p == "0" then
       if band(shr(op, rs), 31) == 0 then werror("cannot use r0") end