diff options
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index d80b924ef04..afd34b968e4 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -281,6 +281,7 @@ void RewriteTest::Initialize(ASTContext &context) { NSStringRecord = 0; CurMethodDecl = 0; SuperStructDecl = 0; + ConstantStringDecl = 0; BcLabelCount = 0; SuperContructorFunctionDecl = 0; NumObjCStringLiterals = 0; @@ -1844,7 +1845,7 @@ QualType RewriteTest::getConstantStringStructType() { // long length; FieldTypes[3] = Context->LongTy; // Create fields - FieldDecl *FieldDecls[2]; + FieldDecl *FieldDecls[4]; for (unsigned i = 0; i < 4; ++i) FieldDecls[i] = FieldDecl::Create(*Context, SourceLocation(), 0, |