Skip to content

Commit

Permalink
Fix testing failure when -O3 is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
higuoxing committed Sep 11, 2024
1 parent ab31830 commit 679645f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions asmjit_expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,18 @@ bool AsmJitCompileExpr(ExprState *State) {
Jitcc.cmp(v_transvalue, v_retval);
Jitcc.je(L_NoCall);

/* store trans value */
{
/*
* FIXME: It's seems v_transvalue is not properly loaded in -O3 and I
* don't know why.
*/
v_transvalue = emit_load_transValue_from_AggStatePerGroupData(
Jitcc, v_pergroupp);
v_transnull = emit_load_transValueIsNull_from_AggStatePerGroupData(
Jitcc, v_pergroupp);
}

jit::InvokeNode *InvokeExecAggCopyTransValue;
x86::Gp v_newval = Jitcc.newUIntPtr("v_newval.uintptr");
Jitcc.invoke(
Expand Down

0 comments on commit 679645f

Please sign in to comment.