aboutsummaryrefslogtreecommitdiff
path: root/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-05 21:49:40 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-05 21:49:40 +0000
commitb26d71348ace5e02da0c58112f8c40da3a94d187 (patch)
treecbb45172abe9a18d2987481427d07aa6b14a8220 /Driver/RewriteTest.cpp
parent8b5f65803134abd74759bf7d7b97398258491528 (diff)
Make sure the class methods get attached to the metaclass object.
Need to query the implementation, not the interface... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r--Driver/RewriteTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index 865328cc98..b0c40f7b34 100644
--- a/Driver/RewriteTest.cpp
+++ b/Driver/RewriteTest.cpp
@@ -2097,9 +2097,9 @@ void RewriteTest::RewriteObjcClassMetaData(ObjcImplementationDecl *IDecl,
// Set 'ivars' field for root class to 0. Objc1 runtime does not use it.
// 'info' field is initialized to CLS_META(2) for metaclass
Result += ", 0,2, sizeof(struct _objc_class), 0";
- if (CDecl->getNumClassMethods() > 0) {
+ if (IDecl->getNumClassMethods() > 0) {
Result += "\n\t, &_OBJC_CLASS_METHODS_";
- Result += CDecl->getName();
+ Result += IDecl->getName();
Result += "\n";
}
else