From 9a0350d1cfafda0e39290bba4d745dec6d36000e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 29 Sep 2013 21:22:28 +0100 Subject: added missing constructor for StmtLabelScope; made StmtLabelScope's Parent private --- include/flang/Sema/Scope.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 ForwardStmtLabelDeclsInScope; public: + StmtLabelScope() : Parent(nullptr) {} typedef StmtLabelMapTy::const_iterator decl_iterator; decl_iterator decl_begin() const { return StmtLabelDeclsInScope.begin(); } -- cgit v1.2.1