summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:20:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:20:37 +0000
commit0cf6625ff848d67569e7db9f13fa97c9a680c588 (patch)
tree540b6ad39cb428faa9433fd569ea7285f9bc84db /clang/lib/Sema
parent19c44508a1838e80f1aaf3dd18c9f8d8d3a59075 (diff)
downloadbcm5719-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/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud