summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-03-27 22:59:54 +0000
committerSteve Naroff <snaroff@apple.com>2008-03-27 22:59:54 +0000
commit60a9ef67e2d89d6e542e2112f89cddbb6b48f829 (patch)
tree672cb264480600bd8193c0bb6ed9fef5ca892dce /clang/Driver/RewriteTest.cpp
parent00a317694b95d82f09aa782034a4ea013017d5b6 (diff)
downloadbcm5719-llvm-60a9ef67e2d89d6e542e2112f89cddbb6b48f829.tar.gz
bcm5719-llvm-60a9ef67e2d89d6e542e2112f89cddbb6b48f829.zip
Add some of Ted's recent work to the VC++ project file.
Fix a couple bozo bugs in the rewriter. llvm-svn: 48903
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r--clang/Driver/RewriteTest.cpp3
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,
OpenPOWER on IntegriCloud