Skip to content

Commit f9c689b

Browse files
authored
Merge pull request swiftlang#41973 from nate-chandler/address_lowering/define-valuestoragemap-dump-in-debug
Only define ValueStorageMap::dump in DEBUG.
2 parents e9f0052 + 97cfeb1 commit f9c689b

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)