Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0418716

Browse files
committed
jit: Fix accidentally-harmless type confusion
In2a0faed, which added JIT compilation support for expressions, Iaccidentally used sizeof(LLVMBasicBlockRef *) instead ofsizeof(LLVMBasicBlockRef) as part of computing the size of an allocation. Thatturns out to have no real negative consequences due to LLVMBasicBlockRef beinga pointer itself (and thus having the same size). It still is wrong andconfusing, so fix it.Reported by coverity.Backpatch-through: 13
1 parent65b0d1f commit0418716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/jit/llvm/llvmjit_expr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ llvm_compile_expr(ExprState *state)
20652065
v_nullsp=l_ptr_const(nulls,l_ptr(TypeStorageBool));
20662066

20672067
/* create blocks for checking args */
2068-
b_checknulls=palloc(sizeof(LLVMBasicBlockRef*)*nargs);
2068+
b_checknulls=palloc(sizeof(LLVMBasicBlockRef)*nargs);
20692069
for (intargno=0;argno<nargs;argno++)
20702070
{
20712071
b_checknulls[argno]=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp