[BOLT] Remove always true if statement
authorRafael Auler <rafaelauler@fb.com>
Wed, 3 Aug 2022 02:04:29 +0000 (19:04 -0700)
committerRafael Auler <rafaelauler@fb.com>
Wed, 3 Aug 2022 20:11:33 +0000 (13:11 -0700)
Got a warning from GCC when building this.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D131092

bolt/lib/Core/BinaryFunction.cpp

index 7ee4255..c4f03bb 100644 (file)
@@ -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;
       }