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
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index b4de21c..8d19334 100644
--- a/Driver/RewriteTest.cpp
+++ b/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);
}