aboutsummaryrefslogtreecommitdiff
path: root/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-15 12:35:21 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-15 12:35:21 +0000
commit335eafa5be51f6440672a74c73d588af72e96732 (patch)
tree00a8eb90229d0150be217779a79773283a435808 /Driver/RewriteTest.cpp
parentc2a689b0bd0cda7bc1522dc0057f01f0897e6d3d (diff)
Implement support for variadic methods (work in progress).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44171 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 a768d17b3a..b5dcdfc802 100644
--- a/Driver/RewriteTest.cpp
+++ b/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());