[flang-commits] [flang] 9285738 - [flang] fix unused variable (NFC) (#215635)
via flang-commits
flang-commits at lists.llvm.org
Tue Aug 11 12:52:06 PDT 2026
Author: Kelvin Li
Date: 2026-08-11T15:52:00-04:00
New Revision: 9285738bf9d45969ab87ecf4f1016c993e50e931
URL: https://github.com/llvm/llvm-project/commit/9285738bf9d45969ab87ecf4f1016c993e50e931
DIFF: https://github.com/llvm/llvm-project/commit/9285738bf9d45969ab87ecf4f1016c993e50e931.diff
LOG: [flang] fix unused variable (NFC) (#215635)
Added:
Modified:
flang/lib/Lower/OpenMP/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index dacf578f5f4b8..a16889aa365d9 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -6430,7 +6430,7 @@ static fir::RecordType buildConditionalLpType(
// invariant here to catch any semantic regression in assertions builds.
for (const auto *sym : condLpSyms) {
const semantics::Symbol &ultimate = sym->GetUltimate();
- const semantics::DeclTypeSpec *type = ultimate.GetType();
+ [[maybe_unused]] const semantics::DeclTypeSpec *type = ultimate.GetType();
assert(ultimate.Rank() == 0 && type &&
(type->category() == semantics::DeclTypeSpec::Category::Numeric ||
type->category() == semantics::DeclTypeSpec::Category::Logical) &&
More information about the flang-commits
mailing list