summaryrefslogtreecommitdiffstats
path: root/Python/assemble.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-06-17 16:00:16 (GMT)
committerGitHub <noreply@github.com>2023-06-17 16:00:16 (GMT)
commit14d01262dad02579b3dffe5965f640ce21c38896 (patch)
treed3e4dc72599c95f5dc3b3dd7eec5a1f4f3d673b0 /Python/assemble.c
parent34e93d3998bab8acd651c50724eb1977f4860a08 (diff)
downloadcpython-14d01262dad02579b3dffe5965f640ce21c38896.zip
cpython-14d01262dad02579b3dffe5965f640ce21c38896.tar.gz
cpython-14d01262dad02579b3dffe5965f640ce21c38896.tar.bz2
gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and replace by their new versions (#105865)
Diffstat (limited to 'Python/assemble.c')
-rw-r--r--Python/assemble.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/assemble.c b/Python/assemble.c
index 85c6fe7..d6213f8 100644
--- a/Python/assemble.c
+++ b/Python/assemble.c
@@ -339,10 +339,9 @@ static void
write_instr(_Py_CODEUNIT *codestr, instruction *instr, int ilen)
{
int opcode = instr->i_opcode;
- assert(IS_PSEUDO_OPCODE(opcode) == IS_PSEUDO_INSTR(opcode));
assert(!IS_PSEUDO_INSTR(opcode));
int oparg = instr->i_oparg;
- assert(HAS_ARG(opcode) || oparg == 0);
+ assert(OPCODE_HAS_ARG(opcode) || oparg == 0);
int caches = _PyOpcode_Caches[opcode];
switch (ilen - caches) {
case 4: