summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-12-05 17:29:46 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-12-05 17:29:46 +0000
commitd5db92ba974b28931beb325c888934304a492e27 (patch)
tree23836659fddb75610bbe706a8b1200f0c44a4dbf /clang/Driver/RewriteTest.cpp
parent6eed00137141880705f3ffdb87af14d8266b2162 (diff)
downloadbcm5719-llvm-d5db92ba974b28931beb325c888934304a492e27.tar.gz
bcm5719-llvm-d5db92ba974b28931beb325c888934304a492e27.zip
Changed type-cast of "struct objc_super"'s 2nd initializer to match definition of
"struct objc_super". llvm-svn: 44616
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r--clang/Driver/RewriteTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index cb990349ebf..865328cc986 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -1337,9 +1337,9 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) {
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();
OpenPOWER on IntegriCloud