Don't error when a block pointer is passed to a

vararg functions/methods. Fixes radar 7725203.

llvm-svn: 98070
This commit is contained in:
Fariborz Jahanian 2010-03-09 18:34:52 +00:00
parent 9481181d40
commit c4813e8d02
2 changed files with 13 additions and 0 deletions

View File

@ -650,6 +650,7 @@ bool Type::isPODType() const {
case Vector:
case ExtVector:
case ObjCObjectPointer:
case BlockPointer:
return true;
case Enum:

View File

@ -55,3 +55,15 @@ int foo9() {
}
}
// rdar 7725203
@class NSString;
extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
void foo10() {
void(^myBlock)(void) = ^{
};
NSLog(@"%@", myBlock);
}