From: Andres Freund Date: Wed, 27 Jun 2018 06:16:50 +0000 (-0700) Subject: Remove duplicated return statement from llvmjit code. X-Git-Tag: REL_11_BETA3~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=986070872ffaae5d9d0e39eddcc952bc261982a2;p=postgresql Remove duplicated return statement from llvmjit code. The duplicated return clearly doesn't make sense / isn't reachable. Likely introduced by me (Andres), while revising the code. Author: Rushabh Lathia Discussion: https://postgr.es/m/CAGPqQf2raxWOcbuTP36M1rEF3=Rfo7oD29K3psdyHMeE5swBRg@mail.gmail.com --- diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index daae964b1c..5d0cdab1fc 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 */