[llvm] 5b29269 - [X86] Fix llvm-qualified-auto warning by using const auto*. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 06:25:22 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-03T14:21:17+01:00
New Revision: 5b2926974460c2486df7160e7273782e003812f6
URL: https://github.com/llvm/llvm-project/commit/5b2926974460c2486df7160e7273782e003812f6
DIFF: https://github.com/llvm/llvm-project/commit/5b2926974460c2486df7160e7273782e003812f6.diff
LOG: [X86] Fix llvm-qualified-auto warning by using const auto*. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86EvexToVex.cpp
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list