From: Aleksey Demakov Date: Mon, 20 Feb 2006 14:05:03 +0000 (+0000) Subject: _jit_create_call_return_insns returns 1 (success) if there is no X-Git-Tag: before.move.to.git~269 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6f9d5f4bd00778cf5b74c0b89ae2c113c82237a1;p=francis%2Flibjit.git _jit_create_call_return_insns returns 1 (success) if there is no return value or the return value is a struct returned via pointer. --- diff --git a/ChangeLog b/ChangeLog index 5af187f..cec46df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-20 Aleksey Demakov + + * jit/jit-rules-x86.c (_jit_create_call_return_insns): fix return + code in case of no return value or struct returned via pointer. + 2006-02-19 Aleksey Demakov * jit/jit-reg-alloc.h: diff --git a/jit/jit-rules-x86.c b/jit/jit-rules-x86.c index c223adf..3a06fc0 100644 --- a/jit/jit-rules-x86.c +++ b/jit/jit-rules-x86.c @@ -149,7 +149,7 @@ int _jit_create_call_return_insns /* Bail out now if we don't need to worry about return values */ if(!return_value || ptr_return) { - return 0; + return 1; } /* Structure values must be flushed into the frame, and