Skip to content

Commit f38ef69

Browse files
Fix lltrace on jit debug builds
1 parent 8ae2e4c commit f38ef69

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tools/jit/template.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ do { \
6969
} while (0)
7070

7171
#undef LLTRACE_RESUME_FRAME
72-
#define LLTRACE_RESUME_FRAME() \
73-
do { \
74-
} while (0)
72+
#ifdef Py_DEBUG
73+
#define LLTRACE_RESUME_FRAME() frame->lltrace = 0;
74+
#else
75+
#define LLTRACE_RESUME_FRAME()
76+
#endif
7577

7678
#define PATCH_JUMP(ALIAS) \
7779
do { \

0 commit comments

Comments
 (0)