From: Andres Freund Date: Wed, 7 Nov 2018 21:58:52 +0000 (-0800) Subject: Fixup for b84a6dafbf triggering assert failure in LLVM debug builds. X-Git-Tag: REL_12_BETA1~1278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c14a8ff27e26155345e554a9636bab8236500bb9;p=postgresql Fixup for b84a6dafbf triggering assert failure in LLVM debug builds. Author: Andres Freund --- diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c index 13e981e564..0dbc1e4106 100644 --- a/src/backend/jit/llvm/llvmjit_expr.c +++ b/src/backend/jit/llvm/llvmjit_expr.c @@ -422,7 +422,7 @@ llvm_compile_expr(ExprState *state) v_params[3] = v_slot; LLVMBuildCall(b, - FuncExecEvalSysVar, + llvm_get_decl(mod, FuncExecEvalSysVar), v_params, lengthof(v_params), ""); LLVMBuildBr(b, opblocks[i + 1]);