Changed type-cast of "struct objc_super"'s 2nd initializer to match definition of
"struct objc_super".
llvm-svn: 44616
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index cb99034..865328c 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -1337,9 +1337,9 @@
CallExpr *Cls = SynthesizeCallToFunctionDecl(GetClassFunctionDecl,
&ClsExprs[0],
ClsExprs.size());
- // To turn off a warning, type-cast to 'Class'
+ // To turn off a warning, type-cast to 'id'
InitExprs.push_back(
- new CastExpr(Context->getObjcClassType(),
+ new CastExpr(Context->getObjcIdType(),
Cls, SourceLocation())); // set 'super class', using objc_getClass().
// struct objc_super
QualType superType = getSuperStructType();