From: Andres Freund Date: Wed, 21 Mar 2018 21:31:21 +0000 (-0700) Subject: fixup! LLVMJIT: JIT compile expressions. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=377c245a3f353ae112ddc456c3ced59157a01930;p=users%2Fandresfreund%2Fpostgres.git fixup! LLVMJIT: JIT compile expressions. --- diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c index d7e0dda180..f3af424db1 100644 --- a/src/backend/jit/llvm/llvmjit_expr.c +++ b/src/backend/jit/llvm/llvmjit_expr.c @@ -770,7 +770,7 @@ llvm_compile_expr(ExprState *state) LLVMPositionBuilderAtEnd(b, b_boolcheckfalse); LLVMBuildCondBr(b, LLVMBuildICmp(b, LLVMIntEQ, v_boolvalue, - l_int64_const(0), ""), + l_sizet_const(0), ""), b_boolisfalse, b_boolcont); @@ -872,7 +872,7 @@ llvm_compile_expr(ExprState *state) LLVMPositionBuilderAtEnd(b, b_boolchecktrue); LLVMBuildCondBr(b, LLVMBuildICmp(b, LLVMIntEQ, v_boolvalue, - l_int64_const(1), ""), + l_sizet_const(1), ""), b_boolistrue, b_boolcont); @@ -2603,15 +2603,15 @@ BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b, LLVMValueRef v_lifetime = create_LifetimeEnd(mod); LLVMValueRef params[2]; - params[0] = l_int64_const(sizeof(fcinfo->arg)); + params[0] = l_sizet_const(sizeof(fcinfo->arg)); params[1] = l_ptr_const(fcinfo->arg, l_ptr(LLVMInt8Type())); LLVMBuildCall(b, v_lifetime, params, lengthof(params), ""); - params[0] = l_int64_const(sizeof(fcinfo->argnull)); + params[0] = l_sizet_const(sizeof(fcinfo->argnull)); params[1] = l_ptr_const(fcinfo->argnull, l_ptr(LLVMInt8Type())); LLVMBuildCall(b, v_lifetime, params, lengthof(params), ""); - params[0] = l_int64_const(sizeof(fcinfo->isnull)); + params[0] = l_sizet_const(sizeof(fcinfo->isnull)); params[1] = l_ptr_const(&fcinfo->isnull, l_ptr(LLVMInt8Type())); LLVMBuildCall(b, v_lifetime, params, lengthof(params), ""); }