switch the rest of the C decl classes to do their
allocation through ASTContext.
llvm-svn: 48403
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index b4de21c..8d19334 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -1805,7 +1805,8 @@
FieldDecl *FieldDecls[2];
for (unsigned i = 0; i < 2; ++i)
- FieldDecls[i] = new FieldDecl(SourceLocation(), 0, FieldTypes[i]);
+ FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0,
+ FieldTypes[i]);
SuperStructDecl->defineBody(FieldDecls, 4);
}
@@ -1831,7 +1832,8 @@
FieldDecl *FieldDecls[2];
for (unsigned i = 0; i < 4; ++i)
- FieldDecls[i] = new FieldDecl(SourceLocation(), 0, FieldTypes[i]);
+ FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0,
+ FieldTypes[i]);
ConstantStringDecl->defineBody(FieldDecls, 4);
}