diff --git a/lib/Analysis/SyncDependenceAnalysis.cpp b/lib/Analysis/SyncDependenceAnalysis.cpp index 67a1365b698..59582cd3a19 100644 --- a/lib/Analysis/SyncDependenceAnalysis.cpp +++ b/lib/Analysis/SyncDependenceAnalysis.cpp @@ -420,13 +420,9 @@ struct DivergencePropagator { #ifndef NDEBUG static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) { Out << "["; - bool First = true; - for (const auto *BB : Blocks) { - if (!First) - Out << ", "; - First = false; - Out << BB->getName(); - } + ListSeparator LS; + for (const auto *BB : Blocks) + Out << LS << BB->getName(); Out << "]"; } #endif