diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-03 22:25:42 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-03 22:25:42 +0000 |
commit | 87ce5d1cb99094fc7ffb42e0522da4e7bab403f8 (patch) | |
tree | 1ed12ae3037db19fc936da62bf021f2156924794 /Driver/RewriteTest.cpp | |
parent | 9b4ebc21d2b2d1514d30ff34f558dd956297be91 (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.cpp | 4 |
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"; |