diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:15:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:15:50 +0000 |
commit | 0e77ba0bf769e2e5a4a93c079f241b02aeb3ef93 (patch) | |
tree | 424cde040af9365d3e40adffb13e8213fe1cea1e /lib/Sema/SemaDecl.cpp | |
parent | 58cce3b0dcbdcc95b7e713795834b4cb2c8a008a (diff) |
Add create methods for ObjCIvarDecl and ObjCInterfaceDecl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 28b396a8f0..5ac51b29bf 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1340,7 +1340,7 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, DeclTy *TagDecl, // properties can appear within a protocol. // See corresponding FIXME in DeclObjC.h:ObjCPropertyDecl. isa<ObjCProtocolDecl>(static_cast<Decl *>(TagDecl))) - NewFD = new ObjCIvarDecl(Loc, II, T); + NewFD = ObjCIvarDecl::Create(Context, Loc, II, T); else assert(0 && "Sema::ActOnField(): Unknown TagDecl"); |