Skip to content

Commit 91e7a17

Browse files
committed
[NFC][llvm-mca] Fix compiler warning
Fix clang compiler warning from `-Wrange-loop-analysis`. Reviewed By: andreadb Differential Revision: https://reviews.llvm.org/D95997
1 parent 50578cf commit 91e7a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-mca/Views/InstructionInfoView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void InstructionInfoView::collectData(
9393
MutableArrayRef<InstructionInfoViewData> IIVD) const {
9494
const llvm::MCSubtargetInfo &STI = getSubTargetInfo();
9595
const MCSchedModel &SM = STI.getSchedModel();
96-
for (const auto &I : zip(getSource(), IIVD)) {
96+
for (const auto I : zip(getSource(), IIVD)) {
9797
const MCInst &Inst = std::get<0>(I);
9898
InstructionInfoViewData &IIVDEntry = std::get<1>(I);
9999
const MCInstrDesc &MCDesc = MCII.get(Inst.getOpcode());

0 commit comments

Comments
 (0)