diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-02-17 20:20:37 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-02-17 20:20:37 +0000 |
commit | 0cf6625ff848d67569e7db9f13fa97c9a680c588 (patch) | |
tree | 540b6ad39cb428faa9433fd569ea7285f9bc84db /clang/lib/AST/DeclObjC.cpp | |
parent | 19c44508a1838e80f1aaf3dd18c9f8d8d3a59075 (diff) | |
download | bcm5719-llvm-0cf6625ff848d67569e7db9f13fa97c9a680c588.tar.gz bcm5719-llvm-0cf6625ff848d67569e7db9f13fa97c9a680c588.zip |
All Decls have a DeclContext now, hooray! Fans of consistency rejoice.
Pass the DeclContext to ObjCIvarDecls as well.
llvm-svn: 64801
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 162ead60f89..506d3e4c387 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -78,10 +78,10 @@ void ObjCInterfaceDecl::Destroy(ASTContext& C) { } -ObjCIvarDecl *ObjCIvarDecl::Create(ASTContext &C, SourceLocation L, - IdentifierInfo *Id, QualType T, - AccessControl ac, Expr *BW) { - return new (C) ObjCIvarDecl(L, Id, T, ac, BW); +ObjCIvarDecl *ObjCIvarDecl::Create(ASTContext &C, DeclContext *DC, + SourceLocation L, IdentifierInfo *Id, + QualType T, AccessControl ac, Expr *BW) { + return new (C) ObjCIvarDecl(DC, L, Id, T, ac, BW); } |