[SDA] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds

This commit is contained in:
Fangrui Song 2020-10-04 12:06:06 -07:00
parent 955b926b0b
commit c36d441b6b
1 changed files with 2 additions and 0 deletions

View File

@ -417,6 +417,7 @@ struct DivergencePropagator {
}
};
#ifndef NDEBUG
static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
Out << "[";
bool First = true;
@ -428,6 +429,7 @@ static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
}
Out << "]";
}
#endif
const ControlDivergenceDesc &
SyncDependenceAnalysis::getJoinBlocks(const Instruction &Term) {