From 3f6cd0bc76b29da9a98ce84149d254edfd50b56b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jul 2008 22:36:27 +0000 Subject: remove some unneeded calls to getCanonicalType llvm-svn: 54106 --- clang/lib/Analysis/CFRefCount.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 17ad4481d30..319318f9907 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -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; -- cgit v1.2.3