jit: Fix accidentally-harmless type confusion
authorAndres Freund <andres@anarazel.de>
Tue, 4 Nov 2025 23:36:18 +0000 (18:36 -0500)
committerAndres Freund <andres@anarazel.de>
Tue, 4 Nov 2025 23:42:04 +0000 (18:42 -0500)
commit5b45f7ee7946dc2de9446ba1da71f839de369401
tree58164784e10c847a641387ed98b60ab798b13a9e
parentbcfbd3f747d7f4403d8b53d1c471557c391d613f
jit: Fix accidentally-harmless type confusion

In 2a0faed9d702, which added JIT compilation support for expressions, I
accidentally used sizeof(LLVMBasicBlockRef *) instead of
sizeof(LLVMBasicBlockRef) as part of computing the size of an allocation. That
turns out to have no real negative consequences due to LLVMBasicBlockRef being
a pointer itself (and thus having the same size). It still is wrong and
confusing, so fix it.

Reported by coverity.

Backpatch-through: 13
src/backend/jit/llvm/llvmjit_expr.c