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

Commitc922b24

Browse files
jit: Create void type in the right context
Commit3b991f8 introduced a specific context for types suchthat all no longer referenced types can be dropped periodicallyrather than leaking. One void pointer type creation was howevermissed leading to an assertion failure in LLVM Debug builds.Per buildfarm members canebreak and urutu. Fix with assistancefrom Andres. The codepath in question was refactored in version13 hence why this only affected version 12.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/1106876.1700409912@sss.pgh.pa.us
1 parente81e617 commitc922b24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,15 +2620,17 @@ build_EvalXFunc(LLVMBuilderRef b, LLVMModuleRef mod, const char *funcname,
26202620
LLVMValueRefv_fn;
26212621
LLVMTypeRefparam_types[3];
26222622
LLVMValueRefparams[3];
2623+
LLVMContextReflc;
26232624

2625+
lc=LLVMGetModuleContext(mod);
26242626
v_fn=LLVMGetNamedFunction(mod,funcname);
26252627
if (!v_fn)
26262628
{
26272629
param_types[0]=l_ptr(StructExprState);
26282630
param_types[1]=l_ptr(StructExprEvalStep);
26292631
param_types[2]=l_ptr(StructExprContext);
26302632

2631-
sig=LLVMFunctionType(LLVMVoidType(),
2633+
sig=LLVMFunctionType(LLVMVoidTypeInContext(lc),
26322634
param_types,lengthof(param_types),
26332635
false);
26342636
v_fn=LLVMAddFunction(mod,funcname,sig);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp