summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-16 01:15:50 +0000
committerChris Lattner <sabre@nondot.org>2008-03-16 01:15:50 +0000
commit96c501ef7e314fb0d856b409fb6215581b34415e (patch)
treeb83b266975aa27cc0ca9778b74b2aa357245c2e6 /clang/lib/Sema/Sema.cpp
parent011b0f5c5ab36db8fe118cf46f19f48d275ff512 (diff)
downloadbcm5719-llvm-96c501ef7e314fb0d856b409fb6215581b34415e.tar.gz
bcm5719-llvm-96c501ef7e314fb0d856b409fb6215581b34415e.zip
Add create methods for ObjCIvarDecl and ObjCInterfaceDecl
llvm-svn: 48408
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index f4c271cdcb1..da78ec06787 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -108,8 +108,9 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer)
Context.setObjCClassType(ClassTypedef);
// Synthesize "@class Protocol;
- ObjCInterfaceDecl *ProtocolDecl = new ObjCInterfaceDecl(SourceLocation(), 0,
- &Context.Idents.get("Protocol"), true);
+ ObjCInterfaceDecl *ProtocolDecl =
+ ObjCInterfaceDecl::Create(Context, SourceLocation(), 0,
+ &Context.Idents.get("Protocol"), true);
Context.setObjCProtoType(Context.getObjCInterfaceType(ProtocolDecl));
// Synthesize "typedef struct objc_object { Class isa; } *id;"
OpenPOWER on IntegriCloud