Index: lib/IR/SafepointIRVerifier.cpp =================================================================== --- lib/IR/SafepointIRVerifier.cpp +++ lib/IR/SafepointIRVerifier.cpp @@ -84,7 +84,7 @@ bool hasLiveIncomingEdge(const PHINode *PN, const BasicBlock *InBB) const { assert(!isDeadBlock(InBB) && "block must be live"); const BasicBlock* BB = PN->getParent(); - bool Listed = false; + [[maybe_unused]] bool Listed = false; for (const_pred_iterator PredIt(BB), End(BB, true); PredIt != End; ++PredIt) { if (InBB == *PredIt) { if (!isDeadEdge(&getEdge(PredIt)))