pycdc/CMakeFiles/pycdc.dir/flags.make
polfg ba35489dd8 Fix std::bad_cast crash on return-in-if followed by comprehension
In 3.11 a return inside an if/else may fall straight into a sibling
branch. The old code unconditionally consumed the next instruction to
skip a redundant jump; when that instruction was the LOAD_CONST of a
code object feeding a MAKE_FUNCTION (e.g. a list comprehension after
'if not x: return []'), dropping it left MAKE_FUNCTION without its
operand and crashed with std::bad_cast.

Now peek the next instruction and keep it only when it is a LOAD_CONST
of a code object; otherwise preserve the original skip behavior.
Added PycBuffer::pos()/setPos() for safe peeking. decompilation target: 234/239 files, corpus 40/95 (+1, 0 regressions).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 11:49:55 +02:00

12 lines
345 B
Makefile

# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 4.3
# compile CXX with /usr/bin/c++
CXX_DEFINES =
CXX_INCLUDES = -I/tmp/pycdc
CXX_FLAGSarm64 = -Wall -Wextra -Wno-error=shadow -Werror -g -std=gnu++11 -arch arm64
CXX_FLAGS = -Wall -Wextra -Wno-error=shadow -Werror -g -std=gnu++11 -arch arm64