We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e61279 + 9760533 commit c36c320Copy full SHA for c36c320
lib/SIL/IR/SILModule.cpp
@@ -167,13 +167,17 @@ void SILModule::checkForLeaks() const {
167
}
168
169
void SILModule::checkForLeaksAfterDestruction() {
170
+// Disabled in release (non-assert) builds because this check fails in rare
171
+// cases in lldb, causing crashes. rdar://70826934
172
+#ifndef NDEBUG
173
int numAllocated = SILInstruction::getNumCreatedInstructions() -
174
SILInstruction::getNumDeletedInstructions();
175
176
if (numAllocated != 0) {
177
llvm::errs() << "Leaking " << numAllocated << " instructions!\n";
178
llvm_unreachable("leaking instructions");
179
180
+#endif
181
182
183
std::unique_ptr<SILModule> SILModule::createEmptyModule(
0 commit comments