diff options
author | Alex <hypothermia.frost@gmail.com> | 2013-09-29 21:22:28 +0100 |
---|---|---|
committer | Alex <hypothermia.frost@gmail.com> | 2013-09-29 21:22:28 +0100 |
commit | 9a0350d1cfafda0e39290bba4d745dec6d36000e (patch) | |
tree | 0a627d3c9ba00700d5913079f2820fb74dd9df10 /include | |
parent | d06d45c6a7f8f74350c3bcd63d860e0c8eaadbbe (diff) | |
download | flang-9a0350d1cfafda0e39290bba4d745dec6d36000e.tar.gz |
added missing constructor for StmtLabelScope; made StmtLabelScope's Parent private
Diffstat (limited to 'include')
-rw-r--r-- | include/flang/Sema/Scope.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/flang/Sema/Scope.h b/include/flang/Sema/Scope.h index 523db4e4bc..9448f0fbc7 100644 --- a/include/flang/Sema/Scope.h +++ b/include/flang/Sema/Scope.h @@ -98,8 +98,8 @@ private: /// declaring and resolving statement labels. /// class StmtLabelScope { -public: StmtLabelScope *Parent; +public: /// \brief Represents a usage of an undeclared statement label in /// some statement. @@ -133,6 +133,7 @@ private: /// referenced statement labels in this scope. llvm::SmallVector<ForwardDecl, 16> ForwardStmtLabelDeclsInScope; public: + StmtLabelScope() : Parent(nullptr) {} typedef StmtLabelMapTy::const_iterator decl_iterator; decl_iterator decl_begin() const { return StmtLabelDeclsInScope.begin(); } |