From: Rafael Auler Date: Wed, 3 Aug 2022 02:04:29 +0000 (-0700) Subject: [BOLT] Remove always true if statement X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19eb908e6116d3f23af24cdaa55d0607d4bf77d8;p=platform%2Fupstream%2Fllvm.git [BOLT] Remove always true if statement Got a warning from GCC when building this. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D131092 --- diff --git a/bolt/lib/Core/BinaryFunction.cpp b/bolt/lib/Core/BinaryFunction.cpp index 7ee4255..c4f03bb 100644 --- a/bolt/lib/Core/BinaryFunction.cpp +++ b/bolt/lib/Core/BinaryFunction.cpp @@ -1227,13 +1227,10 @@ bool BinaryFunction::disassemble() { BC.DisAsm->getInstruction(TempInst, Size, FunctionData.slice(Offset), AbsoluteInstrAddr, nulls()); if (!BC.validateEncoding(TempInst, FunctionData.slice(Offset, Size))) { - if (opts::Verbosity >= 0) { - errs() << "BOLT-WARNING: internal assembler/disassembler error " - "detected for AVX512 instruction:\n"; - BC.printInstruction(errs(), TempInst, AbsoluteInstrAddr); - errs() << " in function " << *this << '\n'; - } - + errs() << "BOLT-WARNING: internal assembler/disassembler error " + "detected for AVX512 instruction:\n"; + BC.printInstruction(errs(), TempInst, AbsoluteInstrAddr); + errs() << " in function " << *this << '\n'; setIgnored(); break; }