aboutsummaryrefslogtreecommitdiff
path: root/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-12-03 22:25:42 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-12-03 22:25:42 +0000
commit87ce5d1cb99094fc7ffb42e0522da4e7bab403f8 (patch)
tree1ed12ae3037db19fc936da62bf021f2156924794 /Driver/RewriteTest.cpp
parent9b4ebc21d2b2d1514d30ff34f558dd956297be91 (diff)
Fixed a bug exposed by referencing an ivar field using component reference syntax.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r--Driver/RewriteTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index b17f32bd14..a749284fa3 100644
--- a/Driver/RewriteTest.cpp
+++ b/Driver/RewriteTest.cpp
@@ -593,7 +593,9 @@ void RewriteTest::RewriteInterfaceDecl(ObjcInterfaceDecl *ClassDecl) {
ResultStr += "#define _REWRITER_typedef_";
ResultStr += ClassDecl->getName();
ResultStr += "\n";
- ResultStr += "typedef struct objc_object ";
+ ResultStr += "typedef struct ";
+ ResultStr += ClassDecl->getName();
+ ResultStr += " ";
ResultStr += ClassDecl->getName();
ResultStr += ";\n#endif\n";