diff --git a/bolt/lib/Core/BinaryFunction.cpp b/bolt/lib/Core/BinaryFunction.cpp index 61845a7711c9b2..90803118091173 100644 --- a/bolt/lib/Core/BinaryFunction.cpp +++ b/bolt/lib/Core/BinaryFunction.cpp @@ -4176,7 +4176,7 @@ void BinaryFunction::updateOutputValues(const BOLTLinker &Linker) { assert(PrevBB->getOutputAddressRange().first <= BBAddress && "Bad output address for basic block."); assert((PrevBB->getOutputAddressRange().first != BBAddress || - !hasInstructions() || PrevBB->empty()) && + !hasInstructions() || !PrevBB->getNumNonPseudos()) && "Bad output address for basic block."); PrevBB->setOutputEndAddress(BBAddress); }