Fix null instruction dereference when compiling comma expressions

This commit is contained in:
2026-10-27 08:05:51 +01:00
parent b1605b0e82
commit 0e26fc4125
+1 -1
View File
@@ -5001,7 +5001,7 @@ static sxi32 PH7_GenStateEmitExprCode(
} }
} else if(pNode->pOp->iOp == EXPR_OP_COMMA) { } else if(pNode->pOp->iOp == EXPR_OP_COMMA) {
/* POP the left node */ /* POP the left node */
PH7_VmEmitInstr(pGen->pVm, pInstr->iLine, PH7_OP_POP, 1, 0, 0, 0); PH7_VmEmitInstr(pGen->pVm, pNode->pStart->nLine, PH7_OP_POP, 1, 0, 0, 0);
} }
} }
rc = SXRET_OK; rc = SXRET_OK;