瀏覽代碼

ARM: Don't conditionalize non-opcodes in DynASM.

Mike Pall 14 年之前
父節點
當前提交
33bab1f76c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dynasm/dasm_arm.lua

+ 1 - 1
dynasm/dasm_arm.lua

@@ -924,7 +924,7 @@ function _M.mergemaps(map_coreop, map_def)
     local cv = map_cond[cc]
     if cv then
       local v = rawget(t, sub(k, 1, -5)..sub(k, -2))
-      if v then return format("%x%s", cv, sub(v, 2)) end
+      if type(v) == "string" then return format("%x%s", cv, sub(v, 2)) end
     end
   end })
   setmetatable(map_def, { __index = map_archdef })