[PATCH] D95997: [NFC][llvm-mca] Fix compiler warning
Peng Guo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 09:29:57 PST 2021
pguo updated this revision to Diff 321487.
pguo retitled this revision from "[llvm-mca] Fix compiler warning" to "[NFC][llvm-mca] Fix compiler warning".
pguo added a comment.
Update commit message.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95997/new/
https://reviews.llvm.org/D95997
Files:
llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
Index: llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
===================================================================
--- llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
+++ llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
@@ -93,7 +93,7 @@
MutableArrayRef<InstructionInfoViewData> IIVD) const {
const llvm::MCSubtargetInfo &STI = getSubTargetInfo();
const MCSchedModel &SM = STI.getSchedModel();
- for (const auto &I : zip(getSource(), IIVD)) {
+ for (const auto I : zip(getSource(), IIVD)) {
const MCInst &Inst = std::get<0>(I);
InstructionInfoViewData &IIVDEntry = std::get<1>(I);
const MCInstrDesc &MCDesc = MCII.get(Inst.getOpcode());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95997.321487.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/36e5bede/attachment.bin>
More information about the llvm-commits
mailing list