From a4a6a24f3e5e3a2b408319e9c8fbcf4ca6d1a073 Mon Sep 17 00:00:00 2001 From: Sahil Jain Date: Mon, 30 Jun 2025 21:35:59 +0530 Subject: [PATCH] Support END_FOR opcode --- .gitignore | 2 ++ ASTree.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 7cfe02d..3b39e81 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ /.kdev4 __pycache__ tests-out +build/ +.vscode/ diff --git a/ASTree.cpp b/ASTree.cpp index 1f419d0..10f507e 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -1679,6 +1679,7 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) /* Do nothing. */ break; case Pyc::POP_TOP: + case Pyc::END_FOR: { PycRef value = stack.top(); stack.pop(); @@ -2473,6 +2474,8 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) stack.push(next_tup); } break; + case Pyc::COPY_A: + break; default: fprintf(stderr, "Unsupported opcode: %s (%d)\n", Pyc::OpcodeName(opcode), opcode); cleanBuild = false;