aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-16 00:16:02 +0000
committerChris Lattner <sabre@nondot.org>2008-03-16 00:16:02 +0000
commit8e25d8681822d8094bfeb97b2239363552548171 (patch)
tree3c3d5c9f3f93a8587d0bbd1ad3341bad1b407285 /lib/Sema/Sema.cpp
parentbda0b626e74513950405c27525af87e214e605e2 (diff)
switch the rest of the C decl classes to do their
allocation through ASTContext. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r--lib/Sema/Sema.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp
index 4bd04e3a1a..f4c271cdcb 100644
--- a/lib/Sema/Sema.cpp
+++ b/lib/Sema/Sema.cpp
@@ -116,8 +116,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer)
RecordDecl *ObjectTag =
RecordDecl::Create(Context, Decl::Struct, SourceLocation(),
&IT.get("objc_object"), 0);
- FieldDecl *IsaDecl = new FieldDecl(SourceLocation(), 0,
- Context.getObjCClassType());
+ FieldDecl *IsaDecl = FieldDecl::Create(Context, SourceLocation(), 0,
+ Context.getObjCClassType());
ObjectTag->defineBody(&IsaDecl, 1);
QualType ObjT = Context.getPointerType(Context.getTagDeclType(ObjectTag));
TypedefDecl *IdTypedef = TypedefDecl::Create(Context, SourceLocation(),