From 5b2926974460c2486df7160e7273782e003812f6 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 3 Sep 2020 13:46:51 +0100 Subject: [PATCH] [X86] Fix llvm-qualified-auto warning by using const auto*. NFC. --- llvm/lib/Target/X86/X86EvexToVex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86EvexToVex.cpp b/llvm/lib/Target/X86/X86EvexToVex.cpp index 540ad98b6d54..8155ce3d0bb6 100644 --- a/llvm/lib/Target/X86/X86EvexToVex.cpp +++ b/llvm/lib/Target/X86/X86EvexToVex.cpp @@ -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;