diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 00:16:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 00:16:02 +0000 |
commit | 8e25d8681822d8094bfeb97b2239363552548171 (patch) | |
tree | 3c3d5c9f3f93a8587d0bbd1ad3341bad1b407285 /Driver/RewriteTest.cpp | |
parent | bda0b626e74513950405c27525af87e214e605e2 (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 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index b4de21c707..8d19334eb8 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -1805,7 +1805,8 @@ QualType RewriteTest::getSuperStructType() { 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 @@ QualType RewriteTest::getConstantStringStructType() { 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); } |