Adapt expression JIT to stdbool.h introduction.
authorAndres Freund <andres@anarazel.de>
Fri, 23 Mar 2018 05:15:51 +0000 (22:15 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 23 Mar 2018 05:15:51 +0000 (22:15 -0700)
commit2111a48a0c5e5198a68cba0c8fb82c4f61be5928
tree9023a35057ba617c55ff67d8648901bdf6b5b62e
parentfdb78948d89b5cc018e3dbf851fafd1652cb5921
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
src/backend/jit/llvm/llvmjit.c
src/backend/jit/llvm/llvmjit_expr.c
src/backend/jit/llvm/llvmjit_types.c
src/include/jit/llvmjit.h
src/include/jit/llvmjit_emit.h