[flang-commits] [flang] [flang][NFC] Add parenthesis to avoid warning (PR #131219)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Thu Mar 13 14:22:23 PDT 2025
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/131219
Remove warning introduced in 369da8421c2f7
>From 82bb902dc0b3c72f10e9855ee76e78714f73bb6c Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Thu, 13 Mar 2025 14:21:06 -0700
Subject: [PATCH] [flang][NFC] Add parenthesis to avoid warning
---
flang/include/flang/Lower/BoxAnalyzer.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flang/include/flang/Lower/BoxAnalyzer.h b/flang/include/flang/Lower/BoxAnalyzer.h
index cd9037360a56b..3b68062904671 100644
--- a/flang/include/flang/Lower/BoxAnalyzer.h
+++ b/flang/include/flang/Lower/BoxAnalyzer.h
@@ -403,9 +403,9 @@ class BoxAnalyzer : public fir::details::matcher<BoxAnalyzer> {
continue;
}
} else if (subs.ubound().isStar()) {
- assert(Fortran::semantics::IsNamedConstant(sym) ||
- Fortran::semantics::IsCUDAShared(sym) &&
- "expect implied shape constant");
+ assert((Fortran::semantics::IsNamedConstant(sym) ||
+ Fortran::semantics::IsCUDAShared(sym)) &&
+ "expect implied shape constant");
shapes.push_back(fir::SequenceType::getUnknownExtent());
continue;
}
More information about the flang-commits
mailing list