fixup! LLVMJIT: JIT compile expressions.
authorAndres Freund <andres@anarazel.de>
Wed, 21 Mar 2018 21:31:21 +0000 (14:31 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 21 Mar 2018 21:31:21 +0000 (14:31 -0700)
src/backend/jit/llvm/llvmjit_expr.c

index d7e0dda1805ebfdfc6a8980920f4c5d0be8378b7..f3af424db1fcc4224272cbc3a673a61501ff822e 100644 (file)
@@ -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), "");
    }