Skip to content

Commit 9124c0e

Browse files
authored
Guard packIdx with #ifndef NDEBUG (#66228)
1 parent 4eb06c2 commit 9124c0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/MetadataCache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ struct GenericSignatureLayout {
463463
}
464464
}
465465

466+
#ifndef NDEBUG
466467
assert(packIdx == NumPacks);
468+
#endif
467469
}
468470

469471
size_t sizeInWords() const {

0 commit comments

Comments
 (0)