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
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index b17f32b..a749284 100644
--- a/Driver/RewriteTest.cpp
+++ b/Driver/RewriteTest.cpp
@@ -593,7 +593,9 @@
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";