From 8e2d730f95c236efafbbc4cde54cca2610cef07d Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 28 Jan 2016 03:22:51 +0000 Subject: [PATCH] Return 0 as a floating point value for ARM hardware FP. Note that this code path is currently unused by Clang, which does the nil check in the caller for fpret functions. --- objc_msgSend.arm.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objc_msgSend.arm.S b/objc_msgSend.arm.S index 3f774e5..f28bf7f 100644 --- a/objc_msgSend.arm.S +++ b/objc_msgSend.arm.S @@ -105,6 +105,9 @@ 4: // Nil receiver mov r0, 0 mov r1, 0 +#ifndef __SOFTFP__ + vmov.i64 d0, #0 // Return 0 as a float / double +#endif bx lr .fnend .endm