forked from OSchip/llvm-project
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:
parent
9481181d40
commit
c4813e8d02
|
@ -650,6 +650,7 @@ bool Type::isPODType() const {
|
|||
case Vector:
|
||||
case ExtVector:
|
||||
case ObjCObjectPointer:
|
||||
case BlockPointer:
|
||||
return true;
|
||||
|
||||
case Enum:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue