summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex <hypothermia.frost@gmail.com>2013-09-29 21:22:28 +0100
committerAlex <hypothermia.frost@gmail.com>2013-09-29 21:22:28 +0100
commit9a0350d1cfafda0e39290bba4d745dec6d36000e (patch)
tree0a627d3c9ba00700d5913079f2820fb74dd9df10 /include
parentd06d45c6a7f8f74350c3bcd63d860e0c8eaadbbe (diff)
downloadflang-9a0350d1cfafda0e39290bba4d745dec6d36000e.tar.gz
added missing constructor for StmtLabelScope; made StmtLabelScope's Parent private
Diffstat (limited to 'include')
-rw-r--r--include/flang/Sema/Scope.h3
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(); }