]> granicus.if.org Git - postgresql/commitdiff
Fixup for b84a6dafbf triggering assert failure in LLVM debug builds.
authorAndres Freund <andres@anarazel.de>
Wed, 7 Nov 2018 21:58:52 +0000 (13:58 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 7 Nov 2018 22:00:14 +0000 (14:00 -0800)
Author: Andres Freund

src/backend/jit/llvm/llvmjit_expr.c

index 13e981e5641b4cc8f97b49009005f9f951b8054d..0dbc1e41062def6c2928aca102d5d8db5ae1a6a7 100644 (file)
@@ -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]);