[BOLT] Remove always true if statement

Got a warning from GCC when building this.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D131092
This commit is contained in:
Rafael Auler
2022-08-02 19:04:29 -07:00
parent 11e5275cc2
commit 19eb908e61

View 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;
}