diff options
Diffstat (limited to 'flang/lib/Semantics/check-directive-structure.h')
-rw-r--r-- | flang/lib/Semantics/check-directive-structure.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/flang/lib/Semantics/check-directive-structure.h b/flang/lib/Semantics/check-directive-structure.h index 1075087feb4f..b93287e8c8dd 100644 --- a/flang/lib/Semantics/check-directive-structure.h +++ b/flang/lib/Semantics/check-directive-structure.h @@ -139,8 +139,11 @@ protected: const PC *clause{nullptr}; std::multimap<C, const PC *> clauseInfo; std::list<C> actualClauses; + Symbol *loopIV{nullptr}; }; + void SetLoopIv(Symbol *symbol) { GetContext().loopIV = symbol; } + // back() is the top of the stack DirectiveContext &GetContext() { CHECK(!dirContext_.empty()); @@ -160,6 +163,7 @@ protected: GetContext().allowedExclusiveClauses = {}; GetContext().requiredClauses = {}; GetContext().clauseInfo = {}; + GetContext().loopIV = {nullptr}; } void SetContextDirectiveSource(const parser::CharBlock &directive) { |