From 19eb908e6116d3f23af24cdaa55d0607d4bf77d8 Mon Sep 17 00:00:00 2001 From: Rafael Auler Date: Tue, 2 Aug 2022 19:04:29 -0700 Subject: [PATCH] [BOLT] Remove always true if statement Got a warning from GCC when building this. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D131092 --- bolt/lib/Core/BinaryFunction.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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; } -- 2.7.4