2
0
Эх сурвалжийг харах

MIPS soft-float: Fix code generation for HREF.

Mike Pall 9 жил өмнө
parent
commit
64c6da6b21
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      src/lj_asm_mips.h

+ 1 - 2
src/lj_asm_mips.h

@@ -651,8 +651,7 @@ static void asm_href(ASMState *as, IRIns *ir, IROp merge)
     rset_clear(allow, key);
     if (irkey[1].o == IR_HIOP) {
       if (ra_hasreg((irkey+1)->r)) {
-	tmpnum = (irkey+1)->r;
-	type = RID_TMP;
+	type = tmpnum = (irkey+1)->r;
 	tmp1 = ra_scratch(as, allow);
 	rset_clear(allow, tmp1);
 	ra_noweak(as, tmpnum);