]> granicus.if.org Git - postgresql/commitdiff
Remove duplicated return statement from llvmjit code.
authorAndres Freund <andres@anarazel.de>
Wed, 27 Jun 2018 06:16:50 +0000 (23:16 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 27 Jun 2018 06:16:50 +0000 (23:16 -0700)
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

src/backend/jit/llvm/llvmjit.c

index daae964b1cea26bddcee1bc9455b60394ed4d8fa..5d0cdab1fc68991f43e26dce4e97d567d48bb81a 100644 (file)
@@ -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 */