[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:47:01 PST 2021


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG91e7a1713332: [NFC][llvm-mca] Fix compiler warning (authored by pguo).

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.321499.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/83e5d957/attachment.bin>


More information about the llvm-commits mailing list