[flang-commits] [flang] c6cce26 - [flang][OpenMP] Delete ununsed data member, NFC
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Nov 4 10:11:27 PST 2024
Author: Krzysztof Parzyszek
Date: 2024-11-04T12:11:02-06:00
New Revision: c6cce261f5f7e1bdb092374d51e44ab7bc04e769
URL: https://github.com/llvm/llvm-project/commit/c6cce261f5f7e1bdb092374d51e44ab7bc04e769
DIFF: https://github.com/llvm/llvm-project/commit/c6cce261f5f7e1bdb092374d51e44ab7bc04e769.diff
LOG: [flang][OpenMP] Delete ununsed data member, NFC
The `SemanticsContext &sctx_` ended up being unused in the committed
version, but the declaration remained.
Credit to Kazu Hirata for noticing it.
Added:
Modified:
flang/lib/Semantics/check-omp-structure.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 60b9759f0a6eb8..749d5887eaac07 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -272,7 +272,7 @@ bool OmpStructureChecker::IsCloselyNestedRegion(const OmpDirectiveSet &set) {
namespace {
struct ContiguousHelper {
ContiguousHelper(SemanticsContext &context)
- : sctx_(context), fctx_(context.foldingContext()) {}
+ : fctx_(context.foldingContext()) {}
template <typename Contained>
std::optional<bool> Visit(const common::Indirection<Contained> &x) {
@@ -296,7 +296,6 @@ struct ContiguousHelper {
}
private:
- [[maybe_unused]] SemanticsContext &sctx_;
evaluate::FoldingContext &fctx_;
};
} // namespace
More information about the flang-commits
mailing list