瀏覽代碼

MIPS: Fix "bad FP FLOAD" assertion.

Reported by Sergey Kaplun. #1043
Mike Pall 2 年之前
父節點
當前提交
72efc42ef2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_asm_mips.h

+ 1 - 1
src/lj_asm_mips.h

@@ -1337,8 +1337,8 @@ static void asm_fload(ASMState *as, IRIns *ir)
       }
     }
     ofs = field_ofs[ir->op2];
+    lj_assertA(!irt_isfp(ir->t), "bad FP FLOAD");
   }
-  lj_assertA(!irt_isfp(ir->t), "bad FP FLOAD");
   emit_tsi(as, mi, dest, idx, ofs);
 }