Skip to content

Commit c36d441

Browse files
committed
[SDA] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
1 parent 955b926 commit c36d441

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Analysis/SyncDependenceAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ struct DivergencePropagator {
417417
}
418418
};
419419

420+
#ifndef NDEBUG
420421
static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
421422
Out << "[";
422423
bool First = true;
@@ -428,6 +429,7 @@ static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
428429
}
429430
Out << "]";
430431
}
432+
#endif
431433

432434
const ControlDivergenceDesc &
433435
SyncDependenceAnalysis::getJoinBlocks(const Instruction &Term) {

0 commit comments

Comments
 (0)