aboutsummaryrefslogtreecommitdiff
path: root/dynasm
diff options
context:
space:
mode:
authorMike Pall <mike>2019-01-10 12:28:24 +0100
committerMike Pall <mike>2019-01-10 12:28:24 +0100
commit20e4c529458fa42ef6651a0042e3955723ee20c2 (patch)
treee7badd7a55c883e682e17389c6296b2100da61b6 /dynasm
parent380e4409a70725df85034f02c968b6ebd7a5e513 (diff)
downloadluajit-20e4c529458fa42ef6651a0042e3955723ee20c2.tar.gz
luajit-20e4c529458fa42ef6651a0042e3955723ee20c2.tar.bz2
luajit-20e4c529458fa42ef6651a0042e3955723ee20c2.zip
DynASM/PPC: Fix shadowed variable.
Cleanup only, bug cannot trigger. Thanks to Domingo Alvarez Duarte.
Diffstat (limited to 'dynasm')
-rw-r--r--dynasm/dasm_ppc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/dynasm/dasm_ppc.lua b/dynasm/dasm_ppc.lua
index 4e1656e3..77031fb2 100644
--- a/dynasm/dasm_ppc.lua
+++ b/dynasm/dasm_ppc.lua
@@ -1056,9 +1056,9 @@ map_op[".template__"] = function(params, template, nparams)
1056 elseif p == "M" then 1056 elseif p == "M" then
1057 op = op + parse_shiftmask(params[n], false); n = n + 1 1057 op = op + parse_shiftmask(params[n], false); n = n + 1
1058 elseif p == "J" or p == "K" then 1058 elseif p == "J" or p == "K" then
1059 local mode, n, s = parse_label(params[n], false) 1059 local mode, m, s = parse_label(params[n], false)
1060 if p == "K" then n = n + 2048 end 1060 if p == "K" then m = m + 2048 end
1061 waction("REL_"..mode, n, s, 1) 1061 waction("REL_"..mode, m, s, 1)
1062 n = n + 1 1062 n = n + 1
1063 elseif p == "0" then 1063 elseif p == "0" then
1064 if band(shr(op, rs), 31) == 0 then werror("cannot use r0") end 1064 if band(shr(op, rs), 31) == 0 then werror("cannot use r0") end