]> granicus.if.org Git - clang/commitdiff
Initialize instance variable DeclAccess in ctor for ObjCIvarDecl.
authorTed Kremenek <kremenek@apple.com>
Wed, 23 Jul 2008 18:12:25 +0000 (18:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 23 Jul 2008 18:12:25 +0000 (18:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53956 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 9267bde14a6eacf740d170a9bb73efa98d36cb09..3128f5b16a62697bee0b6f33d76efa5986d02439 100644 (file)
@@ -487,7 +487,7 @@ public:
 private:
   ObjCIvarDecl(SourceLocation L, IdentifierInfo *Id, QualType T,
                AccessControl ac, Expr *BW)
-    : FieldDecl(ObjCIvar, L, Id, T, BW) {}
+    : FieldDecl(ObjCIvar, L, Id, T, BW), DeclAccess(ac) {}
   
 public:
   static ObjCIvarDecl *Create(ASTContext &C, SourceLocation L,