mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Adapt expression JIT to stdbool.h introduction.
The LLVM JIT provider uses clang to synchronize types between normal C code and runtime generated code. Clang represents stdbool.h style booleans in return values & parameters differently from booleans stored in variables. Thus the expression compilation code from2a0faed9dneeds to be adapted to9a95a77d9. Instead of hardcoding i8 as the type for booleans (which already was wrong on some edge case platforms!), use postgres' notion of a boolean as used for storage and for parameters. Per buildfarm animal xenodermus. Author: Andres Freund
This commit is contained in:
@@ -56,8 +56,11 @@ typedef struct LLVMJitContext
|
||||
|
||||
|
||||
/* type and struct definitions */
|
||||
extern LLVMTypeRef TypeSizeT;
|
||||
extern LLVMTypeRef TypeParamBool;
|
||||
extern LLVMTypeRef TypePGFunction;
|
||||
extern LLVMTypeRef TypeSizeT;
|
||||
extern LLVMTypeRef TypeStorageBool;
|
||||
|
||||
extern LLVMTypeRef StructtupleDesc;
|
||||
extern LLVMTypeRef StructHeapTupleData;
|
||||
extern LLVMTypeRef StructTupleTableSlot;
|
||||
|
||||
Reference in New Issue
Block a user