Skip to content

Commit 031d6e3

Browse files
committed
optimize code
1 parent 57a22e9 commit 031d6e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Include/internal/pycore_optimizer_types.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ extern "C" {
1010

1111
#include "pycore_uop.h" // UOP_MAX_TRACE_LENGTH
1212

13+
typedef struct _PyJitTracerState _PyJitTracerState;
14+
1315
// Holds locals, stack, locals, stack ... (in that order)
1416
#define MAX_ABSTRACT_INTERP_SIZE 512
1517

@@ -128,8 +130,7 @@ typedef struct _JitOptContext {
128130
JitOptRef *n_consumed;
129131
JitOptRef *limit;
130132
JitOptRef locals_and_stack[MAX_ABSTRACT_INTERP_SIZE];
131-
132-
struct _PyJitTracerState *tracer;
133+
_PyJitTracerState *tracer;
133134
} JitOptContext;
134135

135136

0 commit comments

Comments
 (0)