forked from OSchip/llvm-project
Make sure internally synthesized block pointer types are converted before pretty printing.
llvm-svn: 58380
This commit is contained in:
parent
fbb10bbec4
commit
52c65fa169
|
@ -2180,6 +2180,11 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
|
|||
QualType t = mDecl->getParamDecl(i)->getType()->isObjCQualifiedIdType()
|
||||
? Context->getObjCIdType()
|
||||
: mDecl->getParamDecl(i)->getType();
|
||||
// Make sure we convert "t (^)(...)" to "t (*)(...)".
|
||||
if (isBlockPointerType(t)) {
|
||||
const BlockPointerType *BPT = t->getAsBlockPointerType();
|
||||
t = Context->getPointerType(BPT->getPointeeType());
|
||||
}
|
||||
ArgTypes.push_back(t);
|
||||
}
|
||||
returnType = mDecl->getResultType()->isObjCQualifiedIdType()
|
||||
|
|
Loading…
Reference in New Issue