forked from OSchip/llvm-project
[X86] Fix llvm-qualified-auto warning by using const auto*. NFC.
This commit is contained in:
parent
e1a3038689
commit
5b29269744
|
@ -250,7 +250,7 @@ bool EvexToVexInstPass::CompressEvexToVexImpl(MachineInstr &MI) const {
|
|||
(Desc.TSFlags & X86II::VEX_L) ? makeArrayRef(X86EvexToVex256CompressTable)
|
||||
: makeArrayRef(X86EvexToVex128CompressTable);
|
||||
|
||||
auto I = llvm::lower_bound(Table, MI.getOpcode());
|
||||
const auto *I = llvm::lower_bound(Table, MI.getOpcode());
|
||||
if (I == Table.end() || I->EvexOpcode != MI.getOpcode())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue