Skip to content

Commit acfa737

Browse files
committed
Add alignment checking
1 parent bcd5654 commit acfa737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ PyJitRef_IsInvalid(JitOptRef ref)
246246
static inline JitOptRef
247247
PyJitRef_MakeUnique(JitOptRef ref)
248248
{
249+
assert((ref.bits & REF_IS_UNIQUE) == 0);
249250
return (JitOptRef){ ref.bits | REF_IS_UNIQUE };
250251
}
251252

0 commit comments

Comments
 (0)