Thread: pgsql: Adapt expression JIT to stdbool.h introduction.
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 from 2a0faed9d needs to be adapted to 9a95a77d9. 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2111a48a0c5e5198a68cba0c8fb82c4f61be5928 Modified Files -------------- src/backend/jit/llvm/llvmjit.c | 31 ++++++++- src/backend/jit/llvm/llvmjit_expr.c | 126 ++++++++++++++++++----------------- src/backend/jit/llvm/llvmjit_types.c | 16 ++++- src/include/jit/llvmjit.h | 5 +- src/include/jit/llvmjit_emit.h | 18 +++++ 5 files changed, 132 insertions(+), 64 deletions(-)