Skip to content

Commit c6cce26

Browse files
committed
[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.
1 parent a779dc3 commit c6cce26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ bool OmpStructureChecker::IsCloselyNestedRegion(const OmpDirectiveSet &set) {
272272
namespace {
273273
struct ContiguousHelper {
274274
ContiguousHelper(SemanticsContext &context)
275-
: sctx_(context), fctx_(context.foldingContext()) {}
275+
: fctx_(context.foldingContext()) {}
276276

277277
template <typename Contained>
278278
std::optional<bool> Visit(const common::Indirection<Contained> &x) {
@@ -296,7 +296,6 @@ struct ContiguousHelper {
296296
}
297297

298298
private:
299-
[[maybe_unused]] SemanticsContext &sctx_;
300299
evaluate::FoldingContext &fctx_;
301300
};
302301
} // namespace

0 commit comments

Comments
 (0)