[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:36:26 PST 2021


pguo updated this revision to Diff 321491.
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.321491.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/8347b136/attachment.bin>


More information about the llvm-commits mailing list