diff options
-rw-r--r-- | llvm/lib/MCA/Pipeline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MCA/Pipeline.cpp b/llvm/lib/MCA/Pipeline.cpp index 6860a8caf55..22b9d0799f7 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<Stage> &S : Stages) { - if (Err = S->cycleEnd()) + Err = S->cycleEnd(); + if (Err) break; } |