mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user