jit: Fix accidentally-harmless type confusion

Andres Freund <andres@anarazel.de>

Commit: 0418716e1c694fdc84a26f2551e764ee83e21520
Author: Andres Freund <andres@anarazel.de>
Date: 2025-11-04T23:42:04Z
Releases: 14.20
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

Files

PathChange+/−
src/backend/jit/llvm/llvmjit_expr.c modified +1 −1