diff --git a/bolt/lib/Core/BinaryFunction.cpp b/bolt/lib/Core/BinaryFunction.cpp index e5c6d551e42a..af982fd60b17 100644 --- a/bolt/lib/Core/BinaryFunction.cpp +++ b/bolt/lib/Core/BinaryFunction.cpp @@ -2502,7 +2502,7 @@ void BinaryFunction::annotateCFIState() { } } - if (!StateStack.empty()) { + if (opts::Verbosity >= 1 && !StateStack.empty()) { BC.errs() << "BOLT-WARNING: non-empty CFI stack at the end of " << *this << '\n'; }