diff --git a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp b/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp index 99c0aab29d9c..e2cdad37ee14 100644 --- a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp +++ b/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp @@ -60,7 +60,7 @@ llvm::Error FetchStage::execute(InstRef & /*unused */) { } llvm::Error FetchStage::cycleStart() { - if (!CurrentInstruction && SM.hasNext()) + if (!CurrentInstruction) return getNextInstruction(); return llvm::ErrorSuccess(); }