[llvm] f90fe01 - [OpenMP] Fix -Wparentheses warning [NFC]
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 05:50:32 PST 2025
Author: Mikael Holmen
Date: 2025-12-09T14:48:59+01:00
New Revision: f90fe01f8580fa79979703d435d354c061aed503
URL: https://github.com/llvm/llvm-project/commit/f90fe01f8580fa79979703d435d354c061aed503
DIFF: https://github.com/llvm/llvm-project/commit/f90fe01f8580fa79979703d435d354c061aed503.diff
LOG: [OpenMP] Fix -Wparentheses warning [NFC]
Without this gcc warned
../lib/Frontend/OpenMP/OMPIRBuilder.cpp:5082:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
Added:
Modified:
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index e3439b9e6f990..e4158d855b13d 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -5079,7 +5079,7 @@ OpenMPIRBuilder::applyStaticChunkedWorkshareLoop(
bool NeedsBarrier, Value *ChunkSize, OMPScheduleType SchedType,
Value *DistScheduleChunkSize, OMPScheduleType DistScheduleSchedType) {
assert(CLI->isValid() && "Requires a valid canonical loop");
- assert(ChunkSize || DistScheduleChunkSize && "Chunk size is required");
+ assert((ChunkSize || DistScheduleChunkSize) && "Chunk size is required");
LLVMContext &Ctx = CLI->getFunction()->getContext();
Value *IV = CLI->getIndVar();
More information about the llvm-commits
mailing list