From 0cf6625ff848d67569e7db9f13fa97c9a680c588 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 17 Feb 2009 20:20:37 +0000 Subject: All Decls have a DeclContext now, hooray! Fans of consistency rejoice. Pass the DeclContext to ObjCIvarDecls as well. llvm-svn: 64801 --- clang/lib/Sema/SemaDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema') diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index b5e6bd69739..5eb2e6a95ba 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -3559,7 +3559,7 @@ Sema::DeclTy *Sema::ActOnIvar(Scope *S, : ObjCIvarDecl::None; // Construct the decl. - ObjCIvarDecl *NewID = ObjCIvarDecl::Create(Context, Loc, II, T, ac, + ObjCIvarDecl *NewID = ObjCIvarDecl::Create(Context, CurContext, Loc, II, T,ac, (Expr *)BitfieldWidth); if (II) { -- cgit v1.2.3