]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Fix armhf call argument handling.
authorMike Pall <mike>
Sun, 2 Dec 2012 20:21:02 +0000 (21:21 +0100)
committerMike Pall <mike>
Sun, 2 Dec 2012 20:21:02 +0000 (21:21 +0100)
src/lj_asm_arm.h

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