From a194656fa2452aba7bd3e46cd282d8e7f1aeab3f Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Wed, 27 Mar 2019 16:22:36 +0000 Subject: [PATCH] [MCA] Fix -Wparentheses warning breaking the -Werror build. Waring was introduced at r357074. llvm-svn: 357085 --- llvm/lib/MCA/Pipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }