mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
remove some unneeded calls to getCanonicalType
llvm-svn: 54106
This commit is contained in:
@@ -1992,10 +1992,9 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1462,8 +1462,7 @@ static QualType GetReturnType(Expr* RetE, ASTContext& Ctx) {
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user