diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-06 19:49:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-06 19:49:56 +0000 |
commit | 227c0d13bc9387bb73fd1d49f34d1d7394bdb74e (patch) | |
tree | a16358921ec498eab9adc34253832ca78e9fb7ab /clang/Driver/RewriteTest.cpp | |
parent | 65a2288eef33bd2bf20d71442b965ae6e5fabead (diff) | |
download | bcm5719-llvm-227c0d13bc9387bb73fd1d49f34d1d7394bdb74e.tar.gz bcm5719-llvm-227c0d13bc9387bb73fd1d49f34d1d7394bdb74e.zip |
On Steve's suggestion, moved handling of use of undeclared method in a message
to rewriter (my previous patch).
llvm-svn: 44665
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index b0c40f7b341..9b19cfb450c 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -1419,8 +1419,8 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { // Now do the "normal" pointer to function cast. QualType castType = Context->getFunctionType(returnType, - &ArgTypes[0], ArgTypes.size(), - Exp->getMethodDecl()->isVariadic()); + &ArgTypes[0], ArgTypes.size(), + Exp->getMethodDecl() ? Exp->getMethodDecl()->isVariadic() : false); castType = Context->getPointerType(castType); cast = new CastExpr(castType, cast, SourceLocation()); @@ -1444,8 +1444,8 @@ Stmt *RewriteTest::RewriteMessageExpr(ObjCMessageExpr *Exp) { SourceLocation()); // Now do the "normal" pointer to function cast. castType = Context->getFunctionType(returnType, - &ArgTypes[0], ArgTypes.size(), - Exp->getMethodDecl()->isVariadic()); + &ArgTypes[0], ArgTypes.size(), + Exp->getMethodDecl() ? Exp->getMethodDecl()->isVariadic() : false); castType = Context->getPointerType(castType); cast = new CastExpr(castType, cast, SourceLocation()); |