[llvm] r357085 - [MCA] Fix -Wparentheses warning breaking the -Werror build.
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 09:22:37 PDT 2019
Author: adibiagio
Date: Wed Mar 27 09:22:36 2019
New Revision: 357085
URL: http://llvm.org/viewvc/llvm-project?rev=357085&view=rev
Log:
[MCA] Fix -Wparentheses warning breaking the -Werror build.
Waring was introduced at r357074.
Modified:
llvm/trunk/lib/MCA/Pipeline.cpp
Modified: llvm/trunk/lib/MCA/Pipeline.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MCA/Pipeline.cpp?rev=357085&r1=357084&r2=357085&view=diff
==============================================================================
--- llvm/trunk/lib/MCA/Pipeline.cpp (original)
+++ llvm/trunk/lib/MCA/Pipeline.cpp Wed Mar 27 09:22:36 2019
@@ -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;
}
More information about the llvm-commits
mailing list