Skip to content

Commit 97cfeb1

Browse files
committed
Only define ValueStorageMap::dump in DEBUG.
1 parent bfff4ba commit 97cfeb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ void ValueStorageMap::replaceValue(SILValue oldValue, SILValue newValue) {
366366
valueVector[ordinal].value = newValue;
367367
}
368368

369+
#ifndef NDEBUG
369370
void ValueStorageMap::dump() {
370371
llvm::dbgs() << "ValueStorageMap:\n";
371372
for (unsigned ordinal : indices(valueVector)) {
@@ -388,6 +389,7 @@ void ValueStorageMap::dump() {
388389
}
389390
}
390391
}
392+
#endif
391393

392394
//===----------------------------------------------------------------------===//
393395
// AddressLoweringState

0 commit comments

Comments
 (0)