diff --git a/llvm/lib/MCA/Pipeline.cpp b/llvm/lib/MCA/Pipeline.cpp index 6860a8caf55c..22b9d0799f77 100644 --- a/llvm/lib/MCA/Pipeline.cpp +++ b/llvm/lib/MCA/Pipeline.cpp @@ -64,7 +64,8 @@ Error Pipeline::runCycle() { // Update stages in preparation for a new cycle. for (const std::unique_ptr &S : Stages) { - if (Err = S->cycleEnd()) + Err = S->cycleEnd(); + if (Err) break; }