Re: Typo in llvm_function_reference - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Typo in llvm_function_reference
Date
Msg-id 20180627062025.ppg64cv44dvsgftt@alap3.anarazel.de
Whole thread Raw
In response to Typo in llvm_function_reference  (Rushabh Lathia <rushabh.lathia@gmail.com>)
List pgsql-hackers
Hi,

On 2018-06-27 10:46:35 +0530, Rushabh Lathia wrote:
> There is multiple return statement in llvm_function_reference
> and that's definitely looks typo. Here is the patch to fix the
> same.

> diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
> index daae964..5d0cdab 100644
> --- a/src/backend/jit/llvm/llvmjit.c
> +++ b/src/backend/jit/llvm/llvmjit.c
> @@ -394,7 +394,6 @@ llvm_function_reference(LLVMJitContext *context,
>          LLVMSetGlobalConstant(v_fn, true);
>  
>          return LLVMBuildLoad(builder, v_fn, "");
> -        return v_fn;
>      }
>  
>      /* check if function already has been added */

Thanks! Pushed.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: commitfest app moving patch error
Next
From: Amit Langote
Date:
Subject: Re: postgresql_fdw doesn't handle defaults correctly