[X86] Fix llvm-qualified-auto warning by using const auto*. NFC.

This commit is contained in:
Simon Pilgrim 2020-09-03 13:46:51 +01:00
parent e1a3038689
commit 5b29269744
1 changed files with 1 additions and 1 deletions

View File

@ -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;