diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-15 12:35:21 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-15 12:35:21 +0000 |
commit | d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb (patch) | |
tree | aeff07daa9450539d26a7e6556e8a6db003bb91f /clang/Driver/RewriteTest.cpp | |
parent | 05caa48fb403cfd5a73909e317e8f1d9e4cb75f4 (diff) | |
download | bcm5719-llvm-d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb.tar.gz bcm5719-llvm-d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb.zip |
Implement support for variadic methods (work in progress).
llvm-svn: 44171
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index a768d17b3a5..b5dcdfc802e 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -1274,11 +1274,11 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { // xx.m:13: note: if this code is reached, the program will abort cast = new CastExpr(Context->getPointerType(Context->VoidTy), DRE, SourceLocation()); - + // Now do the "normal" pointer to function cast. QualType castType = Context->getFunctionType(returnType, &ArgTypes[0], ArgTypes.size(), - false/*FIXME:variadic*/); + Exp->getMethodDecl()->isVariadic()); castType = Context->getPointerType(castType); cast = new CastExpr(castType, cast, SourceLocation()); |