for (attnum = 0; attnum < natts; attnum++)
{
- LLVMValueRef v_attno = l_int32_const(attnum);
+ LLVMValueRef v_attno = l_int16_const(attnum);
LLVMAddCase(v_switch, v_attno, attcheckattnoblocks[attnum]);
}
{
LLVMValueRef v_off = LLVMBuildLoad(b, v_offp, "");
- LLVMBuildStore(b, l_int32_const(natts), v_nvalidp);
+ LLVMBuildStore(b, l_int16_const(natts), v_nvalidp);
v_off = LLVMBuildTrunc(b, v_off, LLVMInt32Type(), "");
LLVMBuildStore(b, v_off, v_slotoffp);
LLVMBuildStore(b, l_int8_const(1), v_slowp);
"");
LLVMBuildCondBr(b,
LLVMBuildICmp(b, LLVMIntUGE, v_nvalid,
- l_int32_const(op->d.fetch.last_var),
+ l_int16_const(op->d.fetch.last_var),
""),
opblocks[i + 1], b_fetch);
MemoryContext tts_mcxt; /* slot itself is in this context */
Buffer tts_buffer; /* tuple's buffer, or InvalidBuffer */
#define FIELDNO_TUPLETABLESLOT_NVALID 9
- int tts_nvalid; /* # of valid values in tts_values */
+ AttrNumber tts_nvalid; /* # of valid values in tts_values */
#define FIELDNO_TUPLETABLESLOT_VALUES 10
Datum *tts_values; /* current per-attribute values */
#define FIELDNO_TUPLETABLESLOT_ISNULL 11