diff options
Diffstat (limited to 'flang/include/flang/Semantics/scope.h')
-rw-r--r-- | flang/include/flang/Semantics/scope.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/include/flang/Semantics/scope.h b/flang/include/flang/Semantics/scope.h index 0c5beb6492c6..48109c9de041 100644 --- a/flang/include/flang/Semantics/scope.h +++ b/flang/include/flang/Semantics/scope.h @@ -247,7 +247,7 @@ public: // The range of the source of this and nested scopes. const parser::CharBlock &sourceRange() const { return sourceRange_; } - void AddSourceRange(const parser::CharBlock &); + void AddSourceRange(parser::CharBlock); // Find the smallest scope under this one that contains source const Scope *FindScope(parser::CharBlock) const; Scope *FindScope(parser::CharBlock); @@ -276,6 +276,7 @@ private: std::size_t size_{0}; // size in bytes std::optional<std::size_t> alignment_; // required alignment in bytes parser::CharBlock sourceRange_; + const parser::CookedSource *cookedSource_{nullptr}; Symbol *const symbol_; // if not null, symbol_->scope() == this std::list<Scope> children_; mapType symbols_; |