diff options
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index 26bfa01b268..7be16993ecc 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -1839,8 +1839,7 @@ QualType RewriteTest::getSuperStructType() { FieldDecl *FieldDecls[2]; for (unsigned i = 0; i < 2; ++i) - FieldDecls[i] = FieldDecl::Create(*Context, SuperStructDecl, - SourceLocation(), 0, + FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0, FieldTypes[i]); SuperStructDecl->defineBody(FieldDecls, 4); @@ -1867,8 +1866,7 @@ QualType RewriteTest::getConstantStringStructType() { FieldDecl *FieldDecls[4]; for (unsigned i = 0; i < 4; ++i) - FieldDecls[i] = FieldDecl::Create(*Context, ConstantStringDecl, - SourceLocation(), 0, + FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0, FieldTypes[i]); ConstantStringDecl->defineBody(FieldDecls, 4); |