mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
[NFC][llvm-mca] Fix compiler warning
Fix clang compiler warning from `-Wrange-loop-analysis`. Reviewed By: andreadb Differential Revision: https://reviews.llvm.org/D95997
This commit is contained in:
parent
50578cf339
commit
91e7a17133
@ -93,7 +93,7 @@ void InstructionInfoView::collectData(
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user