Skip to content

Commit 9184ca1

Browse files
committed
add explanatory comment
(cherry picked from commit 9760533)
1 parent 5c8fea8 commit 9184ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/IR/SILModule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ void SILModule::checkForLeaks() const {
167167
}
168168

169169
void SILModule::checkForLeaksAfterDestruction() {
170+
// Disabled in release (non-assert) builds because this check fails in rare
171+
// cases in lldb, causing crashes. rdar://70826934
170172
#ifndef NDEBUG
171173
int numAllocated = SILInstruction::getNumCreatedInstructions() -
172174
SILInstruction::getNumDeletedInstructions();

0 commit comments

Comments
 (0)