diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-26 22:36:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 22:36:27 +0000 |
commit | 8b51fd76319d8b71f401cc6ad56e6f4f7be77958 (patch) | |
tree | 6fa2436f4d8274511a8c3d34572eab44f19e3f65 /lib/Analysis/CFRefCount.cpp | |
parent | b77792eabf5882cf9af8cc810599b20432fda6c2 (diff) |
remove some unneeded calls to getCanonicalType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 17ad4481d3..319318f990 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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; |