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.
1 parent 4988127 commit 4a349f9Copy full SHA for 4a349f9
lib/SIL/IR/SILModule.cpp
@@ -167,13 +167,15 @@ void SILModule::checkForLeaks() const {
167
}
168
169
void SILModule::checkForLeaksAfterDestruction() {
170
+#ifndef NDEBUG
171
int numAllocated = SILInstruction::getNumCreatedInstructions() -
172
SILInstruction::getNumDeletedInstructions();
173
174
if (numAllocated != 0) {
175
llvm::errs() << "Leaking " << numAllocated << " instructions!\n";
176
llvm_unreachable("leaking instructions");
177
178
+#endif
179
180
181
std::unique_ptr<SILModule> SILModule::createEmptyModule(
0 commit comments