Browse Source

ARM: Fix armhf call argument handling.

Mike Pall 12 years ago
parent
commit
ee748dd029
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_asm_arm.h

+ 1 - 1
src/lj_asm_arm.h

@@ -355,7 +355,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
     IRRef ref = args[n];
     IRRef ref = args[n];
     IRIns *ir = IR(ref);
     IRIns *ir = IR(ref);
 #if !LJ_SOFTFP
 #if !LJ_SOFTFP
-    if (irt_isfp(ir->t)) {
+    if (ref && irt_isfp(ir->t)) {
       RegSet of = as->freeset;
       RegSet of = as->freeset;
       Reg src;
       Reg src;
       if (!LJ_ABI_SOFTFP && !(ci->flags & CCI_VARARG)) {
       if (!LJ_ABI_SOFTFP && !(ci->flags & CCI_VARARG)) {