Skip to content

Commit 3d0ec7a

Browse files
authored
Merge pull request #69652 from gottesmm/pr-0890d2464f674c0b72231fd2e4a9c1c871685b56
[sil] Fix the no-asserts build by not calling a ifndef NDEBUG method.
2 parents aa61849 + ca1416f commit 3d0ec7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Mandatory/TransferNonSendable.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,11 @@ class BlockPartitionState {
13921392
void print(llvm::raw_ostream &os) const {
13931393
os << SEP_STR << "BlockPartitionState[reached=" << reached
13941394
<< ", needsUpdate=" << needsUpdate << "]\nid: ";
1395+
#ifndef NDEBUG
13951396
basicBlock->printID(os);
1397+
#else
1398+
os << "NOASSERTS. ";
1399+
#endif
13961400
os << "entry partition: ";
13971401
entryPartition.print(os);
13981402
os << "exit partition: ";

0 commit comments

Comments
 (0)