FunctionDecl *MsgSendStretFlavor = 0;
if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) {
QualType resultType = mDecl->getResultType();
- if (resultType.getCanonicalType()->isStructureType()
- || resultType.getCanonicalType()->isUnionType())
+ if (resultType->isStructureType() || resultType->isUnionType())
MsgSendStretFlavor = MsgSendStretFunctionDecl;
- else if (resultType.getCanonicalType()->isRealFloatingType())
+ else if (resultType->isRealFloatingType())
MsgSendFlavor = MsgSendFpretFunctionDecl;
}
QualType RetTy = RetE->getType();
// FIXME: We aren't handling id<...>.
- const PointerType* PT = RetTy.getCanonicalType()->getAsPointerType();
-
+ const PointerType* PT = RetTy->getAsPointerType();
if (!PT)
return RetTy;